Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/HumanBench
/ Posterize
Function
Posterize
PATH/core/data/transforms/pedattr_transforms.py:163–166 ·
view source on GitHub ↗
(img, v)
Source
from the content-addressed store, hash-verified
161
162
163
def
Posterize(img, v):
# [4, 8]
164
v = int(v)
165
v = max(1, v)
166
return
PIL.ImageOps.posterize(img, v)
167
168
169
def
Contrast(img, v):
# [0.1,1.9]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected