models icon indicating copy to clipboard operation
models copied to clipboard

when i export pb file ,encounter error

Open huangqingjun111111 opened this issue 8 years ago • 5 comments

when i want to export pb fie .I encounter an error, the follow is the log.Is there anyone can help me.thanks. File "object_detection/export_inference_graph.py", line 119, in tf.app.run() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 129, in run _sys.exit(main(argv)) File "object_detection/export_inference_graph.py", line 115, in main FLAGS.output_directory, input_shape) File "/home/coolpad/source/models/research/object_detection/exporter.py", line 427, in export_inference_graph input_shape, optimize_graph, output_collection_name) File "/home/coolpad/source/models/research/object_detection/exporter.py", line 391, in _export_inference_graph initializer_nodes='') File "/home/coolpad/source/models/research/object_detection/exporter.py", line 72, in freeze_graph_with_def_protos optimize_tensor_layout=True) ValueError: Protocol message RewriterConfig has no "optimize_tensor_layout" field.

huangqingjun111111 avatar Dec 25 '17 08:12 huangqingjun111111

I apologize but I am having a hard time understanding what the problem is, where the problem is, and what version it affects. Please resubmit and pay attention to the issue template (https://github.com/tensorflow/tensorflow/issues/new) . Please provide all the information it asks. Thank you.

bignamehyp avatar Dec 26 '17 06:12 bignamehyp

Last line of @huangqingjun111111's log: 'ValueError: Protocol message RewriterConfig has no "optimize_tensor_layout" field.'

Appears to be a duplicate of this issue https://github.com/tensorflow/models/issues/2861

bjwimpey avatar Dec 29 '17 18:12 bjwimpey

Change the parameter on line 71 to layout_optimizer=1 . Made a PR - #3106

dakshvar22 avatar Jan 04 '18 12:01 dakshvar22

For me it still throws the error even though I'm using the current standard value for the parameter, any tips?

Zelcore99 avatar Jan 11 '18 19:01 Zelcore99

Closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

ymodak avatar Oct 31 '18 21:10 ymodak