I am getting the above error in my code. I do have the python keras library installed. Can anyone pls help with this?
It seems lint has problem to access it with the directory structure of latest releases.
Try to expand import in this way:
from tensorflow import keras
from keras._tf_keras.keras.preprocessing.image import whatever_you_want
I have tested it with latest versions and it worked.
I changed it to -- from keras.applications import ImageDataGenerator
and Voila it worked!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With