Forums - Size of input does not match network.

5 posts / 0 new
Last post
Size of input does not match network.
979682904
Join Date: 28 Aug 23
Posts: 7
Posted: Wed, 2023-09-13 00:40

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
  • Up0
  • Down0
xingaofeng
Join Date: 22 Aug 23
Posts: 1
Posted: Thu, 2023-09-14 04:17

I encountered the same problem and found that there was a problem with the path setting in the file examples/Models/inception_v3/data/cropped/raw_list.txt

  • Up0
  • Down0
yunxqin
Join Date: 2 Mar 23
Posts: 44
Posted: Fri, 2023-09-15 00:06

Dear developer,

You can check the path you write in input_list.txt and make sure that is the correct path of input files.

BR.

Yunxiang

  • Up0
  • Down0
979682904
Join Date: 28 Aug 23
Posts: 7
Posted: Fri, 2023-09-15 02:04

Hi, I checked my address written on rwa_list.txt, but I didn't find any problem.

  • Up0
  • Down0
979682904
Join Date: 28 Aug 23
Posts: 7
Posted: Fri, 2023-09-15 02:13

Hi, 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
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.