You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Activity
bhavin108 commentedon Jun 26, 2024
No module named 'keras.layers.convolutional'
Getting this error. please help to solve
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'
yhetman commentedon Aug 8, 2024
Replace
from keras.layers.convolutional import Conv2D, MaxPooling2D
with
from keras.layers import Conv2D, MaxPool2D
phamquangtrung85 commentedon Dec 11, 2024
from keras.layers.convolutional import Conv2D, MaxPooling2D on keras 2.7
from keras.layers import Conv2D, MaxPool2D on keras 2024