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

Class RandomShear

dataloader/data_augmentation.py:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185
186class RandomShear:
187 def __init__(self, delta=0.1):
188 self.delta = delta
189
190 def __call__(self, coords):
191 T = np.eye(3) + self.delta * np.random.randn(3, 3)
192 return coords @ T.astype(np.float32)
193
194
195class JitterPoints:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected