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