Models: how to generate pb file from ckpt files?

Created on 2 Aug 2017  路  10Comments  路  Source: tensorflow/models

I have untar mobilenet_v1_1.0_224_2017_06_14.tar.gz. there are three ckpt files there.
-rw-rw-r-- 1 292639 5000 67903136 Jun 14 12:15 mobilenet_v1_1.0_224.ckpt.data-00000-of-00001
-rw-rw-r-- 1 292639 5000 19954 Jun 14 12:15 mobilenet_v1_1.0_224.ckpt.index
-rw-rw-r-- 1 292639 5000 4319476 Jun 14 12:15 mobilenet_v1_1.0_224.ckpt.meta

How can I convert these ckpt file to pb file?

Thanks a lot!

Most helpful comment

./models/object_detection/export_inference_graph.py
1501651501 1
can you see it ?

All 10 comments

use the export_inference_graph.py file. Please look at g3doc/exporting_models.md
"Exporting a trained model for inference"

@heroinlin could you point out where to find "export_inference_graph.py"? I searched but not found. Thanks.

./models/object_detection/export_inference_graph.py
1501651501 1
can you see it ?

Use it by this way:
1501651783 1

See it now, thanks!

@heroinlin hello, I use the export_inference_graph.py,but it failed ,it said

Exception AttributeError: AttributeError("'NoneType' object has no attribute 'ScopedTFStatus'",) in > ignored

what is wrong with it?

@samsun639 hello, have you succeed? I get the error
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'ScopedTFStatus'",) in > ignored
and my order is
python export_inference_graph.py
--input_type image_tensor
--pipeline_config_path /home/seven/ssd_mobilenets/models/ssd_mobilenet_v1_pets.config --trained_checkpoint_prefix /home/seven/ssd_mobilenets/result/model.ckpt-544830
--output_directory /home/seven/ssd_mobilenets/pb

is there any wrong

@LiangHao92 Hi, how to get "ssd_mobilenet_v1_pets.config" file?
Thank you very much!

Hello! I'm looking to get a frozen pb of the im2txt model, but I can't seem to find the config associated

https://github.com/tensorflow/models/tree/master/research/im2txt

Was this page helpful?
0 / 5 - 0 ratings