MCPcopy
hub / github.com/dbolya/yolact / __call__

Method __call__

utils/augmentations.py:517–525  ·  view source on GitHub ↗
(self, image, masks, boxes, labels)

Source from the content-addressed store, hash-verified

515 self.rand_light_noise = RandomLightingNoise()
516
517 def __call__(self, image, masks, boxes, labels):
518 im = image.copy()
519 im, masks, boxes, labels = self.rand_brightness(im, masks, boxes, labels)
520 if random.randint(2):
521 distort = Compose(self.pd[:-1])
522 else:
523 distort = Compose(self.pd[1:])
524 im, masks, boxes, labels = distort(im, masks, boxes, labels)
525 return self.rand_light_noise(im, masks, boxes, labels)
526
527class PrepareMasks(object):
528 """

Callers

nothing calls this directly

Calls 2

ComposeClass · 0.85
copyMethod · 0.80

Tested by

no test coverage detected