Forums - Use SSD un cpp

2 posts / 0 new
Last post
Use SSD un cpp
xavier12358
Join Date: 11 Dec 16
Posts: 20
Posted: Fri, 2018-03-09 10:00
Hello, I tranform my SSD Tensorflow model info dlc file. I would like to use snpe_sample compiled file to generate my boxes position. How could I do this?
  • Up0
  • Down0
xavier12358
Join Date: 11 Dec 16
Posts: 20
Posted: Sun, 2018-03-11 13:56

Just to add for more information. So I generate the  mobilenet_ssd.dlc file and the raw files which size are 300x300.

During the generation of modelenet_ssd.dlc file I get that error but the file is well generated:

./snpe-tensorflow-to-dlc --graph /home/xavier/Downloads/frozen_inference_graph.pb  -i Preprocessor/sub 300,300,3 --out_node detection_classes --out_node detection_boxes --out_node detection_scores --dlc mobilenet_ssd.dlc --allow_unconsumed_nodes
2018-03-11 22:34:33.243539: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-03-11 22:34:34.505804: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1890] has already been set.
2018-03-11 22:34:34.505849: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1847] has already been set.
2018-03-11 22:34:34.505869: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2137] has already been set.
2018-03-11 22:34:34.505884: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2140] has already been set.
2018-03-11 22:34:34.505924: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2143] has already been set.
2018-03-11 22:34:34.505935: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2141] has already been set.
2018-03-11 22:34:34.505950: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2144] has already been set.
2018-03-11 22:34:34.505964: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2146] has already been set.
2018-03-11 22:34:34.505977: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2148] has already been set.
2018-03-11 22:34:34.505991: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2150] has already been set.
2018-03-11 22:34:34.506004: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[2138] has already been set.
2018-03-11 22:34:34.506020: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1851] has already been set.
2018-03-11 22:34:34.506027: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1848] has already been set.
2018-03-11 22:34:34.506036: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1850] has already been set.
2018-03-11 22:34:34.506055: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1849] has already been set.
2018-03-11 22:34:34.506483: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1857] has already been set.
2018-03-11 22:34:34.506535: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1855] has already been set.
2018-03-11 22:34:34.506539: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1853] has already been set.
2018-03-11 22:34:34.506561: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1854] has already been set.
2018-03-11 22:34:34.506547: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1856] has already been set.
2018-03-11 22:34:34.506574: W tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at function_ops.cc:80 : Internal: Retval[1852] has already been set.
2018-03-11 22:34:34,512 - 391 - WARNING - ERROR_TF_FALLBACK_TO_ONDEMAND_EVALUATION: Unable to resolve operation output shapes in single pass. Using on-demand evaluation!

 

Then I generate the ouput for snpe-net-run:

./snpe-net-run --container ./mobilenet_ssd.dlc --input_list ../../models/inception_v3/data/cropped/raw_list.txt

For each images, it generates detection_classes:0.raw file.

The file is not empty but it seems to be the same for all images.

This is an example file I get :

http://www.filedropper.com/detectionclasses0

 

 

 

  • Up0
  • Down0
or Register

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.