models icon indicating copy to clipboard operation
models copied to clipboard

Error in Freezing the exported Graph

Open Jilliansea opened this issue 8 years ago • 6 comments

After i have trained my classifier based on slim, i want to Freezing the exported Graph as introduced on the tutorial, but i got the error like that: ERROR: Skipping '/usr/local/lib/python2.7/dist-packages/tensorflow/python/tools:freeze_graph': not a valid absolute pattern (absolute target patterns must start with exactly two slashes): '/usr/local/lib/python2.7/dist-packages/tensorflow/python/tools:freeze_graph' WARNING: Target pattern parsing failed. ERROR: not a valid absolute pattern (absolute target patterns must start with exactly two slashes): '/usr/local/lib/python2.7/dist-packages/tensorflow/python/tools:freeze_graph' INFO: Elapsed time: 0.035s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) export_inference_graph.sh: 3: export_inference_graph.sh: bazel-bin/tensorflow/python/tools/freeze_graph: not found

and my shell file write like this: bazel build /usr/local/lib/python2.7/dist-packages/tensorflow/python/tools:freeze_graph

bazel-bin/tensorflow/python/tools/freeze_graph
--input_graph=/nfs/project/wangzhihui_i/tf_api/experiment_cascade/graph/vgg16_inf_graph.pb
--input_checkpoint=/nfs/project/wangzhihui_i/tf_api/experiment_cascade/train_logs/all/model.ckpt-50000
--input_binary=true --output_graph=/tmp/VGG16_50000.pb
--output_node_names=/nfs/project/wangzhihui_i/tf_api/experiment_cascade/graph/VGG16/Predictions/Reshape_1
--output_file=/nfs/project/wangzhihui_i/tf_api/experiment_cascade/graph/test

have anyone could give me some advice?

Jilliansea avatar Jul 24 '18 02:07 Jilliansea

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce

tensorflowbutler avatar Jul 24 '18 08:07 tensorflowbutler

ok since I'm getting the very same error I believe I can fill those

Have I written custom code NO OS Platform and Distribution Ubuntu 16.04 LTS TensorFlow installed from binaries TensorFlow version gpu 1.8 Bazel version 0.16.1 CUDA/cuDNN version 9.0/7.0 GPU model and memory M4000 8gb Exact command to reproduce see above as described in the issue

the error doesn't seem to depend on paths, etc

Please have a look into the problem! This is the real issue!

Insertfunnylogin avatar Aug 22 '18 08:08 Insertfunnylogin

@Insertfunnylogin Hi, Have you solved this problem?

apxlwl avatar Sep 08 '19 10:09 apxlwl

@Insertfunnylogin you are missing the first question: What is the top-level directory of the model you are using?

@Jilliansea can you answer "which tutorial did you run?"

yhliang2018 avatar Jan 29 '20 21:01 yhliang2018

Please the latest model version/TF version, and reopen the issue if necessary.

yhliang2018 avatar Jan 29 '20 22:01 yhliang2018

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.

tensorflowbutler avatar Jan 29 '20 23:01 tensorflowbutler