Skip to content

Conversation

@averybigant
Copy link
Contributor

Recently, I tried to save my model using model.to_yaml() and then load it via keras.models.model_from_yaml(). However, I got an "Invalid layer: Convolution2D" Exception.
I found this is due to the global namespace of keras.utils.layer_utils misses all the layer classes in keras.layers.convolutional. Thus, saving and loading any model with layers from keras.layers.convolutional will trigger the "Invalid layer" exception.
The line in this PR fixed this problem.

fchollet added a commit that referenced this pull request Aug 10, 2015
Fix conv layers loading for model_from_config
@fchollet fchollet merged commit 69628bb into keras-team:master Aug 10, 2015
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

Successfully merging this pull request may close these issues.

2 participants