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

Class RandomScale

dataloader/data_augmentation.py:176–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175
176class RandomScale:
177 def __init__(self, min, max):
178 self.scale = max - min
179 self.bias = min
180
181 def __call__(self, coords):
182 s = self.scale * np.random.rand(1) + self.bias
183 return coords * s.astype(np.float32)
184
185
186class RandomShear:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected