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

ModelGuesser: can't load Keras models from streams #4309

Closed
AlexDBlack opened this issue Nov 17, 2017 · 2 comments

Comments

@AlexDBlack
Copy link
Contributor

commented Nov 17, 2017

https://github.com/deeplearning4j/deeplearning4j/blob/master/deeplearning4j-core/src/main/java/org/deeplearning4j/util/ModelGuesser.java#L158

Simple fix is just to export the stream contents to a file first.

04:15:21,837 INFO  ~ java.lang.UnsupportedOperationException: Reading HDF5 files from InputStreams currently unsupported.
04:15:21,837 INFO  ~ 	at org.deeplearning4j.nn.modelimport.keras.KerasModelImport.importKerasSequentialModelAndWeights(KerasModelImport.java:89)
04:15:21,837 INFO  ~ 	at org.deeplearning4j.util.ModelGuesser.loadModelGuess(ModelGuesser.java:177)
@AlexDBlack

This comment has been minimized.

Copy link
Contributor Author

commented Nov 17, 2017

@AlexDBlack AlexDBlack closed this Nov 17, 2017

@lock

This comment has been minimized.

Copy link

commented Sep 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Sep 24, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant
You can’t perform that action at this time.