Forums - Why does Size of input do not match network.

2 posts / 0 new
Last post
Why does Size of input do not match network.
979682904
Join Date: 28 Aug 23
Posts: 7
Posted: Sun, 2023-09-17 19:37

Hi all,

I generated inception_v3_quantized.dlc model  and raw files, then I ran successfully on linux host and android target. However, when I run snpe_bench.py to test the benchmark performance, there are some errors as follow:

- ERROR - snpebm.snpebm_device: ['Failed to open input file: path to raw files', 'Size of input does not match network.', 'Expecting: 268203', 'Got: 0']
What's wrong ?
Version of SNPE: 2.13
Version of chip: snapdragon 778G
Model: inception_v3_quantized.dlc generated by setup_inceptionv3.py
 
Someone told me addresses written in raw_list.txt were wrong.
But I checked my addresses written on raw_list.txt, but I didn't find any problem.
 
The srcipt was run under this address: $SNPE_ROOT/benchmarks/SNPE

One of the addresses written on raw_list.txt is as follow: $SNPE_ROOT/examples/Models/inception_v3/data/cropped/trash_bin.raw

I'm sure the raw file is there.

  • Up0
  • Down0
979682904
Join Date: 28 Aug 23
Posts: 7
Posted: Thu, 2023-09-21 05:09

Done. Delete folders before raw files. Change '$SNPE_ROOT/examples/Models/inception_v3/data/cropped/trash_bin.raw' to 'trash_bin.raw'.

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