You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the function of "scipy.misc" is be used at dataloaders/transforms.py.
now, the function of "scipy.misc" has been discarded, i look for the function of "skimage.transform.resize" to replace it.
but when i replace it, the code get am error: 'float' object is not iterable.
Is there any way to fix this, or is there any other functions that can replace the "scipy.misc" function.
thanks.
The text was updated successfully, but these errors were encountered:
you can from scipy import ndimage and replace misc.imresize(img, self.size, self.interpolation) with ndimage.zoom(img, (self.size, self.size, 1), order=0)misc.imresize(img, self.size, self.interpolation, 'F') with ndimage.zoom(img, (self.size, self.size), order=0)itpl.rotate(img, self.angle, reshape=False, prefilter=False, order=0) with ndimage.rotate(img, angle=self.angle, reshape=False, prefilter=False, order=0)
ok!, i get it. thank for your reply,. hope you happy every day!
the function of "scipy.misc" is be used at dataloaders/transforms.py.
now, the function of "scipy.misc" has been discarded, i look for the function of "skimage.transform.resize" to replace it.
but when i replace it, the code get am error: 'float' object is not iterable.
Is there any way to fix this, or is there any other functions that can replace the "scipy.misc" function.
thanks.
The text was updated successfully, but these errors were encountered: