Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/HumanBench
/ Contrast
Function
Contrast
PATH/core/data/transforms/pedattr_transforms.py:169–171 ·
view source on GitHub ↗
(img, v)
Source
from the content-addressed store, hash-verified
167
168
169
def
Contrast(img, v):
# [0.1,1.9]
170
assert 0.1 <= v <= 1.9
171
return
PIL.ImageEnhance.Contrast(img).enhance(v)
172
173
174
def
Color(img, v):
# [0.1,1.9]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected