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

ImportError: cannot import name layer_from_config #5

Open
sodaGH opened this issue Sep 16, 2017 · 2 comments
Open

ImportError: cannot import name layer_from_config #5

sodaGH opened this issue Sep 16, 2017 · 2 comments

Comments

@sodaGH
Copy link

sodaGH commented Sep 16, 2017

When I run the "train.py", I face the error as followed:

111

Does anyone know how to fix it?

@jermenkoo
Copy link

The import should be changed to the following:

# from keras.utils.layer_utils import layer_from_config
from keras.layers import deserialize as layer_from_config

@cemsaz
Copy link

cemsaz commented Apr 25, 2018

Downgrading to Keras version 1.2.2 cleared that error for me.

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

3 participants