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

ImportError: No module named classification_models.keras #51

Open
shiningdai opened this issue Jun 18, 2020 · 2 comments
Open

ImportError: No module named classification_models.keras #51

shiningdai opened this issue Jun 18, 2020 · 2 comments

Comments

@shiningdai
Copy link

When I try to import classification_models.keras for using ResNet18, I am getting an ImportError as:
from classification_models.keras import Classifiers
ImportError: No module named classification_models.keras

I am using Python3.7, Keras 2.2.4, Tensorflow 1.13.1.
Please advise as I am unable to figure out why the error.

Thanks in advance.

@xhxie
Copy link

xhxie commented Jun 23, 2020

When I try to import classification_models.keras for using ResNet18, I am getting an ImportError as:
from classification_models.keras import Classifiers
ImportError: No module named classification_models.keras

I am using Python3.7, Keras 2.2.4, Tensorflow 1.13.1.
Please advise as I am unable to figure out why the error.

Thanks in advance.

I encountered same issue on Jetson TX2.
I am using Python3.6, keras_application 1.0.8, Tensorflow 2.1

@ooksang
Copy link

ooksang commented Jul 3, 2020

from classification_models import Classifiers
--> It works for me.
When I go to "python3.6/site-packages/classification_models" folder, there is no keras.py
But "init.py" has Classifiers class.

Please go to your install path, and check it out.

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