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

Method __init__

dataloader/data_augmentation.py:177–179  ·  view source on GitHub ↗
(self, min, max)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected