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

Class ComposeX

PATH/core/data/transforms/pose_transforms.py:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169class ComposeX:
170 def __init__(self, augmentations):
171 self.augmentations = augmentations
172
173 def __call__(self, data):
174 # img, mask = Image.fromarray(img, mode='RGB'), Image.fromarray(mask, mode='L')
175
176 for a in self.augmentations:
177 data = a(data)
178 if data is None:
179 return None
180 return data
181
182
183class LoadImageFromFile:

Callers 4

__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected