Models: Feature Request: Exporting .meta file of an already pre-trained model (.ckpt) in tf.slim

Created on 11 Dec 2017  路  3Comments  路  Source: tensorflow/models

Using TF.slim and the pre-trained checkpoints I can evaluate the performance of a model. Also, using exporting inference graph I can freeze the model including its weights. However, I would like to find a way to export .meta file of a model as well. How can I do that using only the given the .ckpt file? Say on the inception_v3 case.
I guess something has to be changed in the export_inference_graph.py file to have this feature as an option.

awaiting model gardener

Most helpful comment

@sguada, on the tf.slim models webpage, there are pre-trained models ready to use for training/evaluations. These files are the old .ckpt format, they lack the .meta and .index files (architecture of the model also referred to as .pbtxt). Although, using the provided python scripts on that page, one can directly perform training, evaluation, fine-tuning, and freezing, but the python script of each model is needed to manually construct the graph nodes if one is interested in looking at the weights as-is (without finetuning). Constructing the whole model on the newer version of TF requires 3 files: .meta, .index, and .data and I did not find any straight path to generate those (expect finetuning) to generate those three.

All 3 comments

@sguada Can you comment on this feature request?

@sguada, on the tf.slim models webpage, there are pre-trained models ready to use for training/evaluations. These files are the old .ckpt format, they lack the .meta and .index files (architecture of the model also referred to as .pbtxt). Although, using the provided python scripts on that page, one can directly perform training, evaluation, fine-tuning, and freezing, but the python script of each model is needed to manually construct the graph nodes if one is interested in looking at the weights as-is (without finetuning). Constructing the whole model on the newer version of TF requires 3 files: .meta, .index, and .data and I did not find any straight path to generate those (expect finetuning) to generate those three.

Hi There,
We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing.
If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

Was this page helpful?
0 / 5 - 0 ratings