I am running the command mentioned below.
~/HDD/projects/QC/snpe-eval/snpe-1.55.0.2958$ sudo python $SNPE_ROOT/models/alexnet/scripts/setup_alexnet.py -a models/alexnet/scripts/asset/
But It fails with the log mentioned below.
ERROR: SNPE_ROOT not setup. Please run the SDK env setup script.
The asset directory contains the required asset
~/HDD/projects/QC/snpe-eval/snpe-1.55.0.2958$ ls models/alexnet/scripts/asset/
bvlc_alexnet.caffemodel deploy.prototxt imagenet.bet.pickle synsets.txt test.txt val.txt
caffe_ilsvrc12.tar.gz det_synset_words.txt imagenet_mean.binaryproto synset_words.txt train.txt
Can anyone help what is missing ?
caffe is installed properly. I test that by running
~/HDD/projects/QC/snpe-eval/snpe-1.55.0.2958$ python
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
>>>
Also I run the setup script,
source bin/envsetup.sh -c ~/caffe/
Hello prabukumar,
Once you run envsetup.sh, check whether SNPE_ROOT is set with path to snpe directory by:
echo $SNPE_ROOT
Idealy it should print path to snpe directory. If yes, then run setup_alexnet.py from same environment (Make sure correct python version is used).