MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / Rotate

Function Rotate

PATH/core/data/transforms/pedattr_transforms.py:126–130  ·  view source on GitHub ↗
(img, v)

Source from the content-addressed store, hash-verified

124
125
126def Rotate(img, v): # [-30, 30]
127 assert -30 <= v <= 30
128 if random.random() > 0.5:
129 v = -v
130 return img.rotate(v)
131
132
133def AutoContrast(img, _):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected