Hi, I'm a beginner in SNPE SDK,
Currently I have followed this tutorial https://developer.qualcomm.com/docs/snpe/tutorial_setup.html and already got inception v3 dlc file.
However, when I want to test dlc file on my ubuntu system by command snpe-net-run --container dlc/inception_v3.dlc --input_list data/cropped/raw_list.txt
It show the error "snpe-net-run: command not found".
Is there any step I missed or I should do before run this command?
Any advice will be appreciated, thanks.
Hi frank.huang_1,
$ export SNPE_ROOT=<obsolute path to NPE sdk>
Ex: export SNPE_ROOT=/home/user/git/QDN/snpe-1.37
$ export ANDROID_NDK_ROOT=<obsolute path to android ndk>
Ex: export ANDROID_NDK_ROOT=/home/sysadmin/git/QDN/snpe-1.37/android/Ndk/android-ndk-r21
#Execute the below enviroment setup script in NPE sdk folder
$ source ./bin/envsetup.sh -t <path to tensorflow>
Ex: source ./bin/envsetup.sh -t /usr/local/lib/python3.5/dist-packages/tensorflow
Hi,
After set the environment variables,
I can get the output dir from by the camand now, thanks for your help.
But another problem is that should I set environment variables every time when I open a new terminal?
Because if I run same command on a new terminal without setting environment variables, it still has previous problem, thanks.
Hello, does this mean we have to download snpe and android ndk adn Tensroflow in the Android target to then be able to set the aforementioned environment variables to run snpe-net-run?
(I am able to run it on the Linux Host but I get command not found ont the target)