TimeWarp#
- class myoverse.transforms.TimeWarp(sigma=0.2, n_knots=4, p=1.0, dim='time', **kwargs)[source]#
Warp time axis with smooth random curves.
Creates smooth random time shifts using cubic interpolation.
- Parameters:
Examples
>>> x = torch.randn(64, 2048, device='cuda', names=('channel', 'time')) >>> warp = TimeWarp(sigma=0.2, n_knots=4) >>> y = warp(x)
Methods