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

Function Brightness

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

Source from the content-addressed store, hash-verified

17
18
19def Brightness(img, v):
20 assert v >= 0.0
21 return PIL.ImageEnhance.Brightness(img).enhance(v)
22
23
24def Color(img, v):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected