fchollet / deep-learning-with-python-notebooks

Jupyter notebooks for the code samples of the book "Deep Learning with Python"
MIT License
18.61k stars 8.63k forks source link

Update chapter12_part05_gans.ipynb #185

Closed DerekChia closed 2 years ago

DerekChia commented 2 years ago

Changed keras.utils_dataset_from_directory to keras.utils.image_dataset_from_directory to resolve the following error

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-12-9aa24dbc92fc> in <module>()
      1 from tensorflow import keras
----> 2 dataset = keras.utils_dataset_from_directory(
      3     "celeba_gan",
      4     label_mode=None,
      5     image_size=(64, 64),

AttributeError: module 'tensorflow.keras' has no attribute 'utils_dataset_from_directory'