Open Tito8184 opened 6 months ago
ModuleNotFoundError Traceback (most recent call last) Cell In[2], line 3 1 import tensorflow as tf 2 from keras.models import Sequential ----> 3 from keras.layers.convolutional import Conv2D, MaxPooling2D 4 from keras.layers.core import Flatten, Dense, Dropout 5 from keras.callbacks import EarlyStopping
ModuleNotFoundError: No module named 'keras.layers.convolutional'
Replace from keras.layers.convolutional import Conv2D, MaxPooling2D
with from keras.layers import Conv2D, MaxPool2D
when i try to run cnn_model_train.py, it throws error "ModuleNotFoundError: No module named 'keras.layers.convolutional'", despite of installing all required libraries