How to find the Input and Output Nodes of a Frozen Model

gustavz picture gustavz · Jan 11, 2018 · Viewed 12.2k times · Source

I want to use tensorflow's optimize_for_inference.py script on a frozen Model from the model zoo: the ssd_mobilenet_v1_coco.

How do i find/determine the names of the input and output name of the model?

Here is a link to the graph generated by tensorboard

This question might help: Given a tensor flow model graph, how to find the input node and output node names (for me it did not)

Answer

Pete Warden picture Pete Warden · Feb 5, 2018

We've now added some documentation on this process, covered here:

https://www.tensorflow.org/mobile/prepare_models

If you look for summarize_graph, you'll see an example of how to figure out the right input and output nodes.