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

save keras model as .pb tensorflow model #6212

Closed
gauravshelangia opened this issue Apr 10, 2017 · 10 comments
Closed

save keras model as .pb tensorflow model #6212

gauravshelangia opened this issue Apr 10, 2017 · 10 comments

Comments

@gauravshelangia
Copy link

Please, tell me how can I save Keras model as a tensorflow model ( .pb).
Actually, I want to use the learned model on android that's why I need .pb model.
Or is there any other way to run Keras model on android

@Dref360
Copy link
Contributor

Dref360 commented Apr 11, 2017

This question is best suited for StackOverflow,
You can get the current session with K.get_session() then follow any Tensorflow tutorial

@dhilton
Copy link

dhilton commented Apr 12, 2017

This issue is relevant here: #3223 as @Dref360 said your issue is more suited for StackOverflow.

@nixingyang
Copy link

I think this scenario is quite interesting. Unfortunately, I haven't found any detailed guide yet.

@gauravshelangia
Copy link
Author

Okay, No problem, I managed to run the Keras model on android using deeplearning4j.

@un-lock-me
Copy link

@gauravshelangia would yyou please share ur approach, I have the same problem, I mean I wanna to run keras model on android and I am really stuck in

@gauravshelangia
Copy link
Author

I build the neural net using keras and then import the keras model on android. Look at this issue deeplearning4j/deeplearning4j#3261

@MoriatyC
Copy link

@gauravshelangia I use dl4j to add keras model ,but it has a unknow exception.HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 0:.Do you know how to solve it?

@gauravshelangia
Copy link
Author

@MoriatyC sorry, I don't know how to solve this error.
Can you provide some more information on how you got this error like while loading the keras model in dl4j on android or desktop.

@jinhshi
Copy link

jinhshi commented Mar 21, 2019

@MoriatyC
Hi~
I use dl4j ,have the same problem of you
May I ask how you solved the problem at that time ?

@gauravshelangia
Copy link
Author

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

7 participants