Forums - libDlContainerPy.so cannot open

2 posts / 0 new
Last post
libDlContainerPy.so cannot open
leiinsv
Join Date: 24 Sep 17
Posts: 1
Posted: Sun, 2017-09-24 17:35

I am using Debian 9.0 on snapdragon 820. When I use "python setup_inceptionv3.py -a ../example/", I met following error. However, I double checked and /home/linaro/snpe/snpe-1.2.2/lib/python/snpe/libDlContainerPy.so does exisit. 

Anyone could kindly give me a hint?

Traceback (most recent call last):
  File "/home/linaro/snpe/snpe-1.2.2/models/inception_v3/scripts/create_inceptionv3_raws.py", line 124, in <module>
    exit(main())
  File "/home/linaro/snpe/snpe-1.2.2/models/inception_v3/scripts/create_inceptionv3_raws.py", line 121, in main
    convert_img(src,dest,size)
  File "/home/linaro/snpe/snpe-1.2.2/models/inception_v3/scripts/create_inceptionv3_raws.py", line 106, in convert_img
    __create_raw_incv3(src_image,mean_rgb,128,False,False)
  File "/home/linaro/snpe/snpe-1.2.2/models/inception_v3/scripts/create_inceptionv3_raws.py", line 44, in __create_raw_incv3
    img_raw = __get_img_raw(img_filepath)
  File "/home/linaro/snpe/snpe-1.2.2/models/inception_v3/scripts/create_inceptionv3_raws.py", line 14, in __get_img_raw
    img = Image.open(img_filepath)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2349, in open
    % (filename if filename else fp))
IOError: cannot identify image file '/home/linaro/snpe/snpe-1.2.2/models/inception_v3/data/cropped/chairs.raw'
INFO: Creating image list data files
/home/linaro/snpe/snpe-1.2.2/models/inception_v3/data/cropped/raw_list.txt created listing 5 files.
/home/linaro/snpe/snpe-1.2.2/models/inception_v3/data/target_raw_list.txt created listing 5 files.
INFO: Converting tensorflow_inception_graph_opt.pb to SNPE DLC format
Traceback (most recent call last):
  File "/home/linaro/snpe/snpe-1.2.2/bin/x86_64-linux-clang/snpe-tensorflow-to-dlc", line 35, in <module>
    from converters.tensorflow.converter import DlcConverter
  File "/home/linaro/snpe/snpe-1.2.2/lib/python/converters/tensorflow/converter.py", line 30, in <module>
    import snpe
  File "/home/linaro/snpe/snpe-1.2.2/lib/python/snpe/__init__.py", line 26, in <module>
    import libDlContainerPy as dlcontainer
ImportError: /home/linaro/snpe/snpe-1.2.2/lib/python/snpe/libDlContainerPy.so: cannot open shared object file: No such file or directory
INFO: Creating inception_v3_quantized.dlc quantized model
ERROR: [Errno 8] Exec format error
 
  • Up0
  • Down0
yuepx1027
Join Date: 21 Nov 16
Posts: 4
Posted: Tue, 2018-01-16 03:38

Hi, leiinsv

IOError: cannot identify image file '/home/yuepx1027/snpe-sdk/models/inception_v3/data/cropped/chairs.raw'

1st, I guess you must do this twice:

python ./models/inception_v3/scripts/setup_inceptionv3.py -a ./temp-assets-cache -d

I didn't meet this error when I do it 1st time and got this error for the 2nd time.

2nd, you should make sure that there is libDlContainerPy.so in your snpe directory.

Here is my library location:

~/snpe-sdk/lib/python/snpe/libDlContainerPy.so

Thanks

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