SpecAugment icon indicating copy to clipboard operation
SpecAugment copied to clipboard

Bug in sparse_image_warp_np implementation

Open pankaj512 opened this issue 5 years ago • 1 comments

In the sparse_image_warp_np of sparse_image_warp_np.py file scipy.interpolate.spline is used but this function is not available in scipy 1.3.0. Using sparse_image_warp_np shows a call trace as follows.

File "C:\Anaconda\lib\site-packages\specAugment\sparse_image_warp_np.py", line 121, in sparse_image_warp_np flattened_flows = scipy.interpolate.spline( AttributeError: module 'scipy.interpolate' has no attribute 'spline'

What is alternate to this and how it can be fixed?

PS. Installing SpecAugment with PIP doesn't provide sparse_image_warp_np.py even it is available in the git repository.

pankaj512 avatar Jul 16 '19 12:07 pankaj512

Has anyone solved this? I'm not sure how to reimplement this using the new scipy interpolation functions.

QRabbani avatar Aug 18 '19 01:08 QRabbani