Why does Size of input do not match network.
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.
Done. Delete folders before raw files. Change '$SNPE_ROOT/examples/Models/inception_v3/data/cropped/trash_bin.raw' to 'trash_bin.raw'.