Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TorchSSL/TorchSSL
/ Posterize
Function
Posterize
datasets/augmentation/randaugment.py:46–49 ·
view source on GitHub ↗
(img, v)
Source
from the content-addressed store, hash-verified
44
45
46
def
Posterize(img, v):
# [4, 8]
47
v = int(v)
48
v = max(1, v)
49
return
PIL.ImageOps.posterize(img, v)
50
51
52
def
Rotate(img, v):
# [-30, 30]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected