ImportError: cannot import name 'image_dataset_from_directory ...
stackoverflow.com › questions › 64800968Nov 12, 2020 · First off, I cannot find any keras implementation of image_dataset_from_directory, but instead only the tensorflow.keras implementation, imported by writing: from tensorflow.keras.preprocessing import image_dataset_from_directory . In the keras -documentation, they refer to use tensorflow.keras as well. However, since you are using Tensorflow 2.2.0, I am afraid that will not be possible either, as explained here.