jeffheaton / t81_558_deep_learning

T81-558: Keras - Applications of Deep Neural Networks @Washington University in St. Louis
https://sites.wustl.edu/jeffheaton/t81-558/
Other
5.71k stars 3.04k forks source link

Runtime error with import keras in notebook 6.2 #159

Closed GerritHoevers closed 1 year ago

GerritHoevers commented 1 year ago

Describe the bug While running in COLAB, these three lines in cell [7] give an error: ModuleNotFoundError: No module named 'keras_preprocessing':

import keras_preprocessing from keras_preprocessing import image from keras_preprocessing.image import ImageDataGenerator

By changing the underscore with a point, so: import keras.preprocessing etc it works well.

Expected behavior No runtime errors

Which Notebook Contains this Issue https://github.com/jeffheaton/t81_558_deep_learning/blob/master/t81_558_class_06_2_cnn.ipynb

GerritHoevers commented 1 year ago

Sorry, I was too fast, just had to install Keras-Preprocessing in COLAB. Solved.