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

not able load model #92

Open
RiyazAina-DeepML opened this issue Jan 4, 2020 · 3 comments
Open

not able load model #92

RiyazAina-DeepML opened this issue Jan 4, 2020 · 3 comments

Comments

@RiyazAina-DeepML
Copy link

RiyazAina-DeepML commented Jan 4, 2020

keras = 2.2.4
tensorflow = 2.0.0

i tried this code
from efficientnet.keras import EfficientNetB0
this is imported without error,
but when i run following statements it throws
effnet = EfficientNetB0(weights=None, include_top=False, input_shape=(400,400,3))
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'
what is issue?

@kasperschnack
Copy link

@RiyazAina-DeepML
When using Tensorflow <= 2.0 you need to use the tfkeras package when importing:
from efficientnet.tfkeras import EfficientNetB0

@katiyarsachin
Copy link

@RiyazAina-DeepML
When using Tensorflow <= 2.0 you need to use the tfkeras package when importing:
**from efficientnet.tfkeras import EfficientNetB0**

Thank you so much, after a full day searching on the internet, your solution worked.

@atamazian
Copy link

This issue is solved, so I suggest to close it.

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

4 participants