Forums - SNPE dlc Conversion

2 posts / 0 new
Last post
SNPE dlc Conversion
soroush.heidari
Join Date: 22 Nov 19
Posts: 1
Posted: Mon, 2019-12-02 14:20

I am using an Inforce 6701 board with Linux linaro-alip and I've followed the SNPE setup on a docker container with Ubuntu 14.04. The setup is done and I can run the "snpe-run-net" command but I've not been able to convert the Caffe model to a DLC file. Also, Although, I have defined all the environement variables ($LD_LIBRARY_PATH, $PYTHON_PATH) , I get the following error when I call the

 

$SNPE_ROOT/bin/x86_64-linux-clang

OR

$python3 $SNPE_ROOT/lib/python/snpe/converter/caffe/snpe-caffe-to-dlc

 Failed to find necessary package:

/home/myProject/snpe-1.32.0.555/lib/python/snpe/dlc_utils/libDlModelToolsPy3.so: cannot open shared object file: No such file or directory
Please ensure that $SNPE_ROOT/lib/python is in your PYTHONPATH
 
 
$ printenv
CAFFE_HOME=/home/myProject/caffe
LD_LIBRARY_PATH=/home/myProject/caffe/build/install/lib:/usr/local/lib:/home/myProject/snpe-1.32.0.555/lib/aarch64-linux-gcc4.9:/home/myProject/snpe-1.32.0.555/lib/python:/home/myProject/snpe-1.32.0.555/lib/aarch64-linux-gcc4.9:/home/myProject/snpe-1.32.0.555/lib/python::/home/myProject/caffe/distribute/lib
ANDROID_NDK_ROOT=/home/myProject/android-ndk-r20b
SNPE_ROOT=/home/myProject/snpe-1.32.0.555
CAFFE_DIR=/home/myProject/caffe
PATH=/home/myProject/caffe/distribute/bin:/home/myProject/caffe/build/install/bin:/home/myProject/snpe-1.32.0.555/bin/aarch64-linux-gcc4.9:/home/myProject/snpe-1.32.0.555/bin/aarch64-linux-gcc4.9:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/home/myProject/snpe-1.32.0.555
PYTHONPATH=/home/myProject/caffe/distribute/python:/home/myProject/caffe/build/install/python:/usr/local:/home/myProject/snpe-1.32.0.555/models/alexnet/scripts:/home/myProject/snpe-1.32.0.555/models/lenet/scripts:/home/myProject/snpe-1.32.0.555/lib/python:/home/myProject/snpe-1.32.0.555/models/alexnet/scripts:/home/myProject/snpe-1.32.0.555/models/lenet/scripts:/home/myProject/snpe-1.32.0.555/lib/python:
 
I also added $SNPE/bin/python/snpe/dlc_utils to /etc/ld.so.conf, but still I got the same error.
 
I just wanted to know how run the Caffe converter on a Ubuntu 14.04 with aarch64 architecture.
 
Thank you

 

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 143
Posted: Tue, 2019-12-03 05:26

Hi, 
From the results of "$ printenv", I can see that the python library referred is the generic one, not the SNPE python library.
Below are the results of PATH and PYTHONPATH from "$ printenv" of my system. you can find a clear difference from you on the comparison.

PATH=/home/test_system/git/SNPE/caffe/distribute/bin:/home/test_system/git/SNPE/caffe/build/install/bin:/home/test_system/git/SNPE/snpe-sdk/bin/x86_64-linux-clang:/home/test_system/git/SNPE/snpe-sdk/bin/x86_64-linux-clang:/home/test_system/Android/Sdk/android-ndk-r11c:/home/test_system/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin

PYTHONPATH=/home/test_system/git/SNPE/caffe/distribute/python:/home/test_system/git/SNPE/caffe/build/install/python:/home/test_system/git/SNPE/snpe-sdk/models/alexnet/scripts:/home/test_system/git/SNPE/snpe-sdk/models/lenet/scripts:/home/test_system/git/SNPE/snpe-sdk/lib/python:/home/test_system/git/SNPE/snpe-sdk/models/alexnet/scripts:/home/test_system/git/SNPE/snpe-sdk/models/lenet/scripts:/home/test_system/git/SNPE/snpe-sdk/lib/python:

Kindly follow the setup instructions from the below link and letus know the update on this,

https://developer.qualcomm.com/docs/snpe/setup.html

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