MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / __init__

Method __init__

pycontrast/datasets/util.py:52–53  ·  view source on GitHub ↗
(self, angles=[0, 90, 180, 270])

Source from the content-addressed store, hash-verified

50class Rotate(object):
51 """rotation"""
52 def __init__(self, angles=[0, 90, 180, 270]):
53 self.angles = angles
54
55 def __call__(self, img):
56 angle = np.random.choice(self.angles)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected