MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / RandomVerticalFlip

Class RandomVerticalFlip

transforms/transforms.py:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52class RandomVerticalFlip(object):
53 def __call__(self, img):
54 if random.random() < 0.5:
55 return img.transpose(Image.FLIP_TOP_BOTTOM)
56 return img
57
58
59class DeNormalize(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected