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

Keras 2.0 support #11

Open
kmader opened this issue Jul 27, 2018 · 2 comments
Open

Keras 2.0 support #11

kmader opened this issue Jul 27, 2018 · 2 comments

Comments

@kmader
Copy link
Contributor

kmader commented Jul 27, 2018

Trying to use a model exported by Keras 2 the first layer has an issue since the Convolution2D has been renamed Conv2D (layer.class_name) in the newer API

when processing block1_conv1 0 Conv2D

keras-model-editor.js:19860 Uncaught TypeError: Cannot read property 'color' of undefined
    at window.KerasModelViewer.KerasModelViewer.draw_diag (keras-model-editor.js:19860)
    at window.KerasModelViewer.KerasModelViewer.model (keras-model-editor.js:20016)
    at window.KerasModelViewer.KerasModelViewer.show (keras-model-editor.js:20007)
    at window.KerasModelEditor.KerasModelEditor.show (keras-model-editor.js:24845)
    at test.html:26
@ctzurcanu
Copy link
Contributor

you may modify https://github.com/neurals-ro/keras-model-editor/blob/master/lib/keras_conf_v1.js according to the changes in Keras or even have a new file with the configurations with the name keras_conf_v2.js and use that one in: https://github.com/neurals-ro/keras-model-editor/blob/master/index.js#L39

Then, we would appreciate a PR on "v2" :)

@AndreGuerra123
Copy link

Having the exact same issue.

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