How to restore tensorflow inceptions checkpoint file (ckpt)?
<p>I have <code>inception_resnet_v2_2016_08_30.ckpt</code> file which is a pre-trained inception model. I want to restore this model using</p>

<p><code>saver.restore(sess, ckpt_filename)</code></p>

<p>But for that, I will be required to write the set of variables that were used while training this model. Where can I find those (a script, or detailed description)?</p>

<p>I believe the <a href="https://www.tensorflow.org/versions/master/how_tos/meta_graph/index.html" rel="nofollow"><code>MetaGraph</code> mechanism</a>  is what you need.</p>

<p>EDIT: additionally, take a look at <code>tf.train.NewCheckpointReader</code> -- it has a <code>get_variable_to_shape_map()</code> method.  See <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/training/saver_test.py#L1630" rel="nofollow">unit test</a>.</p>

python tensorflow