DSP

SNPE的使用

2019-07-13 17:57发布

一、下载地址     https://developer.qualcomm.com/software/qualcomm-neural-processing-sdk 二、配置步骤    2.1  $ unzip -X snpe-X.Y.Z.zip    2.2  $ source snpe-X.Y.Z/bin/dependencies.sh    2.3  $ source snpe-X.Y.Z/bin/check_python_depends.sh    2.4 下载caffe       $ git clone  https://github.com/BVLC/caffe.git       $ git checkout d8f79537977f9dbcc2b7054a9e95be00eb6f26d0 (切换到这个分支,SNPE文档如此提示)    2.4 指定PYTHONPATH路径       export SNPE_ROOT=/home/pengcuo/work/snpe/snpe-1.19.2
      export ANDROID_NDK_ROOT=/home/pengcuo/buff/android-ndk-r17
      export PYTHONPATH=/home/pengcuo/work/snpe/snpe-1.19.2/lib/python:/home/pengcuo/work/caffe/python:$PYTHONPATH 三、生成dlc文件      $ ./bin/x86_64-linux-clang/snpe-caffe-to-dlc -c small.prototxt