Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'keras.layers.convolutional' #20

Open
Tito8184 opened this issue Mar 8, 2024 · 2 comments
Open

No module named 'keras.layers.convolutional' #20

Tito8184 opened this issue Mar 8, 2024 · 2 comments

Comments

@Tito8184
Copy link

Tito8184 commented Mar 8, 2024

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

@bhavin108
Copy link

bhavin108 commented 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
Copy link

yhetman commented Aug 8, 2024

Replace from keras.layers.convolutional import Conv2D, MaxPooling2D
with from keras.layers import Conv2D, MaxPool2D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants