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

Method __call__

PATH/core/augmentation_pos.py:40–49  ·  view source on GitHub ↗

Loading image from file.

(self, results)

Source from the content-addressed store, hash-verified

38 self.channel_order = channel_order
39
40 def __call__(self, results):
41 """Loading image from file."""
42 image_file = results['image_file']
43 img = cv2.imread(image_file)
44 img=img[:,:,::-1]
45 if img is None:
46 raise ValueError('Fail to read {}'.format(image_file))
47
48 results['image'] = img
49 return results
50
51class TopDownRandomFlip:
52 """Data augmentation with random image flip.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected