Forums - snpe-dlc-quantize - Could not open input file

5 posts / 0 new
Last post
snpe-dlc-quantize - Could not open input file
subinkb007
Join Date: 11 Nov 15
Posts: 2
Posted: Thu, 2019-01-03 07:53

while executing the following command,

snpe-dlc-quantize --input_dlc mymodel.dlc --input_list image_file_list.txt --output_dlc mymodel-q.dlc

it shows 

[INFO] InitializeStderr: DebugLog initialized.
[INFO] Writing intermediate model
[INFO]
*** Loading images from input list: image_file_list.txt***
[WARNING] NetworkTopology::populateNetworkDesc network desc inputs is empty. Does this network have data/input layer?
[ERROR] Could not open input file: /path/to/data/0.raw
[INFO] DebugLog shutting down.
 

where the image_file_list.txt contains  following information

/path/to/data/0.raw
/path/to/data/1.raw
/path/to/data/2.raw
/path/to/data/3.raw
/path/to/data/4.raw

 

All the paths above are valid. Could you please tell how to solve this issue ?

 

 

  • Up0
  • Down0
subinkb007
Join Date: 11 Nov 15
Posts: 2
Posted: Fri, 2019-01-04 02:08

Got it resolved by changing the line ending format of image_file_list.txt

  • Up0
  • Down0
gexf2
Join Date: 6 Apr 20
Posts: 7
Posted: Sun, 2020-09-27 19:41

Hi Subinkb007,

Could you show the details for your solution?

I also encountered the same problem, but I still don't know how to deal with it after reading your latest reply.

Thank you very much!

  • Up0
  • Down0
v-smirgh
Join Date: 24 Sep 20
Posts: 4
Posted: Sun, 2020-09-27 20:05

If you are creating the --input_list file in Windows, make sure you are using LF and not CRLF as your line ending.

  • Up0
  • Down0
gexf2
Join Date: 6 Apr 20
Posts: 7
Posted: Sun, 2020-09-27 20:16

Thank you v-smirgh!

Yes, I found the difference if checking the file with "cat -A".

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