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

Tensorflow 2.0 #47

Open
ibrahim-sheriff opened this issue Mar 27, 2020 · 7 comments
Open

Tensorflow 2.0 #47

ibrahim-sheriff opened this issue Mar 27, 2020 · 7 comments

Comments

@ibrahim-sheriff
Copy link

Does this work with tensorflow 2.0 keras, because I am trying to use within tf2.0 but failed.

@sourcecode369
Copy link

faced the same issue.

@Saqhas
Copy link

Saqhas commented May 1, 2020

It seems to be resolved now. Try in colab or Kaggle
Try with Tensorflow > 2.1.0

@yurayli
Copy link

yurayli commented May 6, 2020

remember to modify
from classification_models.keras import Classifiers
to
from classification_models.tfkeras import Classifiers

@Grinjero
Copy link

Tried it on colab after installing it with pip.
It seems it can find the module classification_models, but cant find classification_models.tfkeras

@VirajBagal
Copy link

I installed using pip install git+https://github.com/qubvel/classification_models.git

But I am getting this error when importing: cannot import name 'get_submodules_from_kwargs' from 'classification_models' (/opt/conda/lib/python3.7/site-packages/classification_models/__init__.py)

@stvogel
Copy link

stvogel commented Mar 20, 2021

Hmm, this is still an issue. Got the same error with these versions:

Keras                     2.4.3
Keras-Applications        1.0.8
Keras-Preprocessing       1.1.2
tensorflow                2.3.0

Tried also with Keras-Application==1.0.7 (as this was mentioned somewhere else), but still the same error.

Ahh. Finally got it running by installing the most recent:
pip install image-classifiers==1.0.0b1
even though it warns about segmentation-models 1.0.1 requires image-classifiers==1.0.0, but you have image-classifiers 1.0.0b1 which is incompatible.
but well ignoring this for now :-)

@georgeAustralia
Copy link

The following worked for me: ( I had to install keras-applications . Then all worked )

!pip install image-classifiers
!pip install keras-applications
from classification_models.tfkeras import Classifiers
Classifiers.models_names()

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

8 participants