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

How to change used .pb file? #2

Open
azemZejnil opened this issue Apr 1, 2018 · 3 comments
Open

How to change used .pb file? #2

azemZejnil opened this issue Apr 1, 2018 · 3 comments

Comments

@azemZejnil
Copy link

When I try to change .pb file that you use in the project, I get
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {com.guido.styletransfer/com.guido.styletransfer.MainActivity}: java.lang.IllegalArgumentException: No Operation named [input] in the Graph

Caused by: java.lang.IllegalArgumentException: No Operation named [input] in the Graph

Can you explain that part, please?

@GuidoPaul
Copy link
Owner

GuidoPaul commented Apr 2, 2018

In this project, I generated style_graph_frozen.pb. You can look at style-transfer.py, which requires an input placeholder named "X_inputs" and an output placeholder named "output". But now MainActivity.java uses the pb of another project, which is frozen_la_muse.pb. It requires an INPUT_NODE named "input" and an OUTPUT_NODE named "output".

Therefore, when you use different pb files, you need to know the input and output node names that you need in your pb file, and then modify INPUT_NODE and OUTPUT_NODE in MainActivity.java.

@USTC-Keyanjie
Copy link

Can you share the another project which you used to train model, please!
I have fixed my model for a week in order to use it in the project but never work.

@GuidoPaul
Copy link
Owner

GuidoPaul commented Jan 27, 2019 via email

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