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

Method __call__

PATH/core/augmentation_pos.py:14–21  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

12 self.augmentations = augmentations
13
14 def __call__(self, data):
15 # img, mask = Image.fromarray(img, mode='RGB'), Image.fromarray(mask, mode='L')
16
17 for a in self.augmentations:
18 data= a(data)
19 if data is None:
20 return None
21 return data
22
23class LoadImageFromFile:
24 """Loading image from file.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected