Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TorchSSL/TorchSSL
/ Sharpness
Function
Sharpness
datasets/augmentation/randaugment.py:60–62 ·
view source on GitHub ↗
(img, v)
Source
from the content-addressed store, hash-verified
58
59
60
def
Sharpness(img, v):
# [0.1,1.9]
61
assert v >= 0.0
62
return
PIL.ImageEnhance.Sharpness(img).enhance(v)
63
64
65
def
ShearX(img, v):
# [-0.3, 0.3]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected