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

Method __init__

dataloader/data_augmentation.py:231–241  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

229
230class RemoveRandomPoints:
231 def __init__(self, r):
232 if type(r) is list or type(r) is tuple:
233 assert len(r) == 2
234 assert 0 <= r[0] <= 1
235 assert 0 <= r[1] <= 1
236 self.r_min = float(r[0])
237 self.r_max = float(r[1])
238 else:
239 assert 0 <= r <= 1
240 self.r_min = None
241 self.r_max = float(r)
242
243 def __call__(self, e):
244 n = len(e)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected