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

Class RandomBrightness

transforms/transforms.py:165–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165class RandomBrightness(object):
166 def __call__(self, img):
167 if random.random() < 0.5:
168 return img
169 v = random.uniform(0.1, 1.9)
170 return ImageEnhance.Brightness(img).enhance(v)
171
172
173class RandomBilateralBlur(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected