There is an error message when I try to convert pb(Faster RCNN model) to dlc file format.
Please check the error message
Command :
snpe-tensorflow-to-dlc --graph output_inference_graph_optimize.pb --input_dim 'image_tensor:0' 300,300,3 --out_node 'detection_boxes' --out_node 'detection_scores' --out_node 'detection_classes' --dlc ssd_inference_graph.dlc
Error Message :
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-09-19 11:24:29,889 - 125 - ERROR - Encountered Error: graph_def is invalid at node u'Preprocessor/map/while/ResizeToRange/strided_slice/stack': More inputs specified ('Preprocessor/map/while/Switch:1') than the op expects..
Traceback (most recent call last):
File "snpe-tensorflow-to-dlc", line 115, in main
model = loader.load(args.graph, in_nodes, in_dims, args.in_type, args.out_node, session)
File "/home3/***/snpe-1.4.0/lib/python/converters/tensorflow/loader.py", line 67, in load
graph_def = self.__import_graph(graph_pb_or_meta_path, session, out_node_names)
File "/home3/***/snpe-1.4.0/lib/python/converters/tensorflow/loader.py", line 129, in __import_graph
tf.import_graph_def(graph_def, name="")
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/importer.py", line 342, in import_graph_def
% (input_name,)))
ValueError: graph_def is invalid at node u'Preprocessor/map/while/ResizeToRange/strided_slice/stack': More inputs specified ('Preprocessor/map/while/Switch:1') than the op expects.