MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / Rotate

Function Rotate

datasets/augmentation/randaugment.py:52–56  ·  view source on GitHub ↗
(img, v)

Source from the content-addressed store, hash-verified

50
51
52def Rotate(img, v): # [-30, 30]
53 #assert -30 <= v <= 30
54 #if random.random() > 0.5:
55 # v = -v
56 return img.rotate(v)
57
58
59

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected