MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / __call__

Method __call__

utils/transforms.py:10–13  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

8
9class RandomVerticalFlip(object):
10 def __call__(self, img):
11 if random.random() < 0.5:
12 return img.transpose(Image.FLIP_TOP_BOTTOM)
13 return img
14
15
16class DeNormalize(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected