-
Notifications
You must be signed in to change notification settings - Fork 45.9k
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 convert .meta, .data and .index model files into one graph.pb file? #2283
Comments
Hi, The important flag here is --input_binary=false as the file graph.pbtxt is in text format. I think it corresponds to the required graph.pb which is the equivalent in binary format. The problem for me is that on my fine-tuned im2txt model, I have the error Regards, |
Thank you Stephane Since all files including the script file are in the same folder I tried a following command: python freeze_graph.py --input_graph=graph.pbtxt --input_checkpoint=model.ckpt-22480 --input_binary=false --output_graph=frozen_graph.pb --output_node_names=softmax The script started but I got after a minute an error: what make a sense - softmax is just the last layer Then I tried with the output_node_names=InceptionV3/Predictions/Reshape_1 How did you know what is the name of the output node (InceptionV3/Predictions/Reshape_1) which I should use? regards |
Honestly, I mainly followed the tutorial in https://github.com/tensorflow/models/blob/master/slim/export_inference_graph.py and applied the given commands. Regards, |
This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there. Thanks! |
I have the same problem. Do you still have the tutorial that you has followed ? |
In tensorflow the training from the scratch produced following files 6 files:
I would like to convert them (or only the needed ones) into one file graph.pb to be able to transfer it to my Android application. I tried the script freeze_graph.py but it requires as an input already the input.pb file which I do not have. (I have only these 6 files mentioned before). How to proceed to get this one freezed_graph.pb file? I saw several threads but none was working for me.
Windows7/64, tensorflow 1.0, python 3.5.3. GPU: Quadro M2000.
The text was updated successfully, but these errors were encountered: