SpecAugment
SpecAugment copied to clipboard
Bug in sparse_image_warp_np implementation
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.
Has anyone solved this? I'm not sure how to reimplement this using the new scipy interpolation functions.