MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / Sharpness

Function Sharpness

PATH/core/data/transforms/pedattr_transforms.py:184–186  ·  view source on GitHub ↗
(img, v)

Source from the content-addressed store, hash-verified

182
183
184def Sharpness(img, v): # [0.1,1.9]
185 assert 0.1 <= v <= 1.9
186 return PIL.ImageEnhance.Sharpness(img).enhance(v)
187
188
189def Cutout(img, v): # [0, 60] => percentage: [0, 0.2]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected