MCPcopy Create free account
hub / github.com/MetaSLAM/SphereVLAD / __init__

Method __init__

dataloader/data_augmentation.py:144–147  ·  view source on GitHub ↗
(self, axis=None, max_theta=180, max_theta2=15)

Source from the content-addressed store, hash-verified

142
143class RandomRotation:
144 def __init__(self, axis=None, max_theta=180, max_theta2=15):
145 self.axis = axis
146 self.max_theta = max_theta # Rotation around axis
147 self.max_theta2 = max_theta2 # Smaller rotation in random direction
148
149 def _M(self, axis, theta):
150 return expm(np.cross(np.eye(3), axis / norm(axis) * theta)).astype(np.float32)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected