keras-vis icon indicating copy to clipboard operation
keras-vis copied to clipboard

scipy 1.5.2 ImportError: cannot import name 'imresize'

Open Saumya353 opened this issue 4 years ago • 3 comments

ImportError Traceback (most recent call last) in 1 # Reshaping the training data ----> 2 from scipy.misc import imresize 3 4 #X_train_new = np.array([imresize(X_train[i],(200,200,3)) for i in range(0,len(X_train))]).astype('float32') 5 X_train_new = np.array([imresize(X_train[i],(200,200,3)) for i in range(0,100)]).astype('float32')

ImportError: cannot import name 'imresize'

Please let me know how to fix this issue, I have scipy 1.5.2

Saumya353 avatar Nov 08 '20 06:11 Saumya353

See https://github.com/raghakot/keras-vis/issues/221

bersbersbers avatar Dec 14 '20 16:12 bersbersbers

That's because imresize has been removed from scipy since v1.3.0rc1,see #209

abc1044 avatar Mar 28 '21 06:03 abc1044

how to overcome this?

juanlopezcode avatar Jul 23 '21 08:07 juanlopezcode