Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TPCD/DCCL
/ Posterize
Function
Posterize
data/augmentations/randaugment.py:94–97 ·
view source on GitHub ↗
(img, v)
Source
from the content-addressed store, hash-verified
92
93
94
def
Posterize(img, v):
# [4, 8]
95
v = int(v)
96
v = max(1, v)
97
return
PIL.ImageOps.posterize(img, v)
98
99
100
def
Contrast(img, v):
# [0.1,1.9]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected