zcaceres/spec_augment

Problem with the time_warp function

wsstriving opened this issue · 2 comments

Hi, should the following line (which defines the position of the warping point)

point_to_warp = horizontal_line_at_ctr[random.randrange(W, spec_len - W)]  

be changed to

point_to_warp = random.randrange(W, spec_len - W)

It doesn't make sense in the following computation if we add the specific value with a coordinate shift (dist_to_warp).

 src_pts, dest_pts = torch.tensor([[[y, point_to_warp]]]), torch.tensor([[[y, point_to_warp + dist_to_warp]]])

Closing due to lack to response