Forums - faster_rcnn pb -> dlc conversion issue

1 post / 0 new
faster_rcnn pb -> dlc conversion issue
byoungchang.cho
Join Date: 14 Nov 16
Posts: 1
Posted: Tue, 2017-09-19 01:11

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.
 
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.