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

Method __init__

dataloader/data_augmentation.py:196–202  ·  view source on GitHub ↗
(self, sigma=0.01, clip=None, p=1.)

Source from the content-addressed store, hash-verified

194
195class JitterPoints:
196 def __init__(self, sigma=0.01, clip=None, p=1.):
197 assert 0 < p <= 1.
198 assert sigma > 0.
199
200 self.sigma = sigma
201 self.clip = clip
202 self.p = p
203
204 def __call__(self, e):
205 """ Randomly jitter points. jittering is per point.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected