Forums - Enquiry About Output Layer of Network

3 posts / 0 new
Last post
Enquiry About Output Layer of Network
trandung181194
Join Date: 23 Aug 21
Posts: 2
Posted: Wed, 2021-09-01 01:30

Dear Everyone, 
I am quite new to this platform so please be kind if my question is stupid. Currently I am trying to integrate a deep learning model by using SNPE to detect human pose. The architecture of the model is as following:

        Input -> CNN layers -> seperate to two different set of CNN -- > output for first set 
                                                                                                                            -- > output for second set

So, bassically my network is stated from an input data and then genertates two different output (Transpose_85 and Transpose_136), but when I try to execute the network in SNPE, It seems like only have information about the Trasnpose_136 layer. Do any of you has any idea about this situation and is it possipole for me to look for the output of "Transpose_85". Thank you all in Advance!. 
 

  • Up0
  • Down0
ap.arunraj
Join Date: 20 Apr 20
Posts: 21
Posted: Wed, 2021-09-01 03:31

Hello trandung181194,
I assume you have successfully converted the model to DLC and are trying to run the network with snpe-net-run tool. For getting multiple outputs, while running snpe-net-run you need to specify the output layers (in addition to input) in the file that is given to --input_list argument.
Let's assume outputlayer1 and outputlayer2 are the names of 2 output layers and ~/test/example_input.raw is the path of the input, then the input list file format for the same is as follows:

#outputlayer1 outputlayer2
~/test/example_input.raw
 
Note: In the first line # is followed by output layer names which are separated by spaces.
General format for input list (multi input and multi output) is as follows:
 

#<output_name>[<space><output_name>]
<input_layer_name>:=<input_layer_path>[<space><input_layer_name>:=<input_layer_path>]

Please refer snpe-net-run documentation for additional information.
Feel free to reply back for any further issues.
 
  • Up0
  • Down0
trandung181194
Join Date: 23 Aug 21
Posts: 2
Posted: Sat, 2021-09-04 09:17

Thank you for your response. Could you give me any advice on how to set multiple layers for output in SNPE. I tried buy doing .setOutputLayers("cif","caf") (the layers name is taken during conversion from onnx to dlc), but i got the error "One or more specified output layers don't exist!". Therefore, when my network executes, only the last layers is given out. 

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