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

Class RandomVerticalFlip

utils/transforms.py:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
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