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

Importing Keras Model with Python #37

Closed
saltwick opened this issue Nov 11, 2019 · 2 comments
Closed

Importing Keras Model with Python #37

saltwick opened this issue Nov 11, 2019 · 2 comments

Comments

@saltwick
Copy link

I exported an image model using the Keras format (.h5 file), but cannot load it. In Python I'm doing the following.

from keras.models import load_model model = load_model('keras_model.h5')

But I get the following error
TypeError: __init__() got an expected keyword argument 'ragged'

Is this a problem with the export format or is there a different way to load it?

@saltwick
Copy link
Author

Incompatible with the old version of Tensorflow I was using. Upgrading to newest worked.

@digvijay77
Copy link

still not working

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

2 participants