MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / inverse

Method inverse

PATH/core/data/transforms/seg_transforms_dev.py:203–215  ·  view source on GitHub ↗

Create a transform that inverts the geometric changes (i.e. change of coordinates) of this transform. Note that the inverse is meant for geometric changes only. The inverse of photometric transforms that do not change coordinates is defined to be a no-op, ev

(self)

Source from the content-addressed store, hash-verified

201 setattr(cls, "apply_" + data_type, func)
202
203 def inverse(self) -> "Transform":
204 """
205 Create a transform that inverts the geometric changes (i.e. change of
206 coordinates) of this transform.
207
208 Note that the inverse is meant for geometric changes only.
209 The inverse of photometric transforms that do not change coordinates
210 is defined to be a no-op, even if they may be invertible.
211
212 Returns:
213 Transform:
214 """
215 raise NotImplementedError
216
217 def __repr__(self):
218 """

Callers 1

inverseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected