Skip to content

Latest commit

 

History

History

ncnn

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

ncnn部署

转换模型到ncnn

修改convert.sh中模型的路径

./convert.sh

demo

首先需要编译ncnn

git clone https://github.com/Tencent/ncnn
cd ncnn
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
make -j4
make install

python端部署需要先编译和pyncnn,方法和上述类似.s

cd ncnn
python3 demo.py

C++端

cd -
mkdir build
cd build
cmake ..
make -j4
./demo