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

Method _M

dataloader/data_augmentation.py:149–150  ·  view source on GitHub ↗
(self, axis, theta)

Source from the content-addressed store, hash-verified

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)
151
152 def __call__(self, coords):
153 if self.axis is not None:

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected