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

Method __init__

PATH/core/data/transforms/parsing_transforms.py:26–28  ·  view source on GitHub ↗
(self, p=False, mapped_left_right_pairs=None)

Source from the content-addressed store, hash-verified

24
25class hflip:
26 def __init__(self, p=False, mapped_left_right_pairs=None):
27 self.p = p
28 self.mapped_left_right_pairs = mapped_left_right_pairs
29
30 def __call__(self, image, label=None,):
31 if not self.p:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected