MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / Contrast

Function Contrast

datasets/augmentation/randaugment.py:29–31  ·  view source on GitHub ↗
(img, v)

Source from the content-addressed store, hash-verified

27
28
29def Contrast(img, v):
30 assert v >= 0.0
31 return PIL.ImageEnhance.Contrast(img).enhance(v)
32
33
34def Equalize(img, _):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected