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

Improper config format while loading model. #16

Open
diliplilaramani opened this issue May 14, 2018 · 1 comment
Open

Improper config format while loading model. #16

diliplilaramani opened this issue May 14, 2018 · 1 comment

Comments

@diliplilaramani
Copy link

diliplilaramani commented May 14, 2018

I am getting error (below), while loading model. Can you help? -

from keras.models import load_model
loaded_model = load_model('model4b.10-0.68.hdf5')

ERROR:
deserialize_keras_object
raise ValueError('Improper config format: ' + str(config))
ValueError: Improper config format: {u'l2': 0.0005000000237487257, u'name': u'WeightRegularizer', u'l1': 0.0}

I think you're have done the training using Keras 1 & I'm using Keras 2, do you think this can be the issue?

Ref. - keras-team/keras#6382

@CCYChongyanChen
Copy link

CCYChongyanChen commented Nov 19, 2019

I also got this error and fixed by using keras 1.2.2

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