Skip to content

Instantly share code, notes, and snippets.

@cwood1967
Created October 18, 2018 17:41
Show Gist options
  • Save cwood1967/c6d78785c6d2d7a76729e4c9ba315e67 to your computer and use it in GitHub Desktop.
Save cwood1967/c6d78785c6d2d7a76729e4c9ba315e67 to your computer and use it in GitHub Desktop.
## Using tensorflow freeze graph to read a graph saved with
## tf.train.write_graph
incheck=autoencoder-2048x-10000
ingraph=saved_10000.pb
outgraph=frozen_faces_10000.pb
outnodes=decoder/Sigmoid
python -m tensorflow.python.tools.freeze_graph \
--input_graph=$ingraph \
--input_checkpoint=$incheck \
--output_graph=$outgraph \
--output_node_names=$outnodes \
--input_binary=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment