qubvel / classification_models

Classification models trained on ImageNet. Keras.
MIT License
1.22k stars 307 forks source link

ModuleNotFoundError: No module named 'classification_models.keras' #70

Open dillfromdahill opened 3 years ago

dillfromdahill commented 3 years ago

any idea how i can get over this error in colab?

i am trying:

!pip install git+https://github.com/qubvel/classification_models.git
from classification_models.keras import Classifiers

same error happens with

!pip install git+https://github.com/qubvel/classification_models.git
from classification_models.tfkeras import Classifiers

as well

DuHongqin commented 1 year ago

you can change from classification_models.keras import Classifiers to from classification_models import Classifiers That works for me.

anirban-ivan commented 8 months ago

Hi @DuHongqin, I followed what you said but I ran into this error. Can you please help?

ImportError: cannot import name 'Classifiers' from 'classification_models' (/usr/local/lib/python3.10/dist-packages/classification_models/init.py)