Forums - snpe-net-run not giving expected output

2 posts / 0 new
Last post
snpe-net-run not giving expected output
rajan.sharma
Join Date: 9 May 22
Posts: 2
Posted: Thu, 2022-11-03 00:25

Hello,

I converted my onnx model to dlc using snpe-onnx-to-dlc binary and the model is converted to dlc successfully. But when i am trying inferening with that dlc model on the raw image, the raw output is generated and when i decoded that raw output only grey color pixels are coming  which is not as expected. 

Thanks 

Rajan

 

 

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sat, 2022-11-05 23:06

Dear customer,

SNPE recognize the format of NHWC but onnxruntim is NCHW. So you need to transpose one of them to align the data format.

BR.

Wei

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