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

Method __call__

PATH/core/data/transforms/pedattr_transforms.py:302–309  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

300 self.augment_list = augment_list()
301
302 def __call__(self, img):
303 ops = random.choices(self.augment_list, k=self.n)
304
305 for op, minval, maxval in ops:
306 val = (float(self.m) / 30) * float(maxval - minval) + minval
307 img = op(img, val)
308
309 return img
310
311
312class PedAttrRandomAugmentation(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected