-
Notifications
You must be signed in to change notification settings - Fork 19.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.3.0 ImageDataGenerator : unexpected keyword argument 'interpolation_order' #13347
Comments
same problem
|
Same |
same problem. |
same error
got
Everything works on 2.2.5 |
same problem. |
Downgrade to keras 2.2.4 |
you can also try the new version of keras, which is syncronized with tf. It might not solve all keras compatibility problems, but it worked for my case, allowing me to keep working with the more recent version of Keras
More info here: keras vs tf.keras |
Same problem. and I tried from tensorflow.keras.preprocessing.image import ImageDataGenerator it is working now. Thanks JavierClearImageAI |
The same error can anyone help me out? in fit_model(model, X, label) TypeError: flow() got an unexpected keyword argument 'class_mode' |
Thank you. It really works. But I am wondering why Keras version does not work. |
thanks this: |
If you don't want to mix tf.keras and keras in your code base (as I did), the alternative is: |
Just upgraded to 2.3.0
This used to work (in 2.2.4):
from keras.preprocessing.image import ImageDataGenerator
train_datagen = ImageDataGenerator(
rescale=1./255,
rotation_range=20,
width_shift_range=0.2,
height_shift_range=0.2,
horizontal_flip=True,
fill_mode='nearest')
#or just train_datagen = ImageDataGenerator()
but now I get:
...
TypeError: init() got an unexpected keyword argument 'interpolation_order'
Thanks
The text was updated successfully, but these errors were encountered: