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
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.
Kindly follow the setup instructions from the below link and letus know the update on this,
https://developer.qualcomm.com/docs/snpe/setup.html