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

Function Solarize

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

Source from the content-addressed store, hash-verified

107
108
109def Solarize(img, v): # [0, 256]
110 assert 0 <= v <= 256
111 return PIL.ImageOps.solarize(img, v)
112
113
114def Cutout(img, v): #[0, 60] => percentage: [0, 0.2] => change to [0, 0.5]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected