Search code examples
pythontensorflowmachine-learningkerasdeep-learning

ImportError: cannot import name 'image_dataset_from_directory' from 'tensorflow.keras.preprocessing' (unknown location)


Why am i getting this issue? I can import image module from kera.preprocessing. But cannot import image_dataset_from_directory. TF version: 1.14


Solution

  • You can fix it by updating TensorFlow using pip install --upgrade tensorflow