ncnn编译使用

安装

git clone https://github.com/Tencent/ncnn
cd ncnn
mkdir build
cd build
cmake ..
make -j

编译报错
onnx.proto:383:5: Expected “required”, “optional”, or “repeated”.
onnx.proto:383:17: Missing field number.
onnx.proto:402:3: Expected “required”, “optional”, or “repeated”.
onnx.proto:402:15: Missing field number.
make[2]: *** [tools/onnx/onnx.pb.cc] 错误 1
make[1]: *** [tools/onnx/CMakeFiles/onnx2ncnn.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务…
解决方法:
disable onnx2ncnn tool by commenting it out in tools/CMakeLists.txt
使用
将caffe模型转化成ncnn模型

cd ncnn/build/tools/caffe
./caffe2ncnn deploy.prototxt bvlc_alexnet.caffemodel alexnet/alexnet.param alexnet.bin

编译example
uncomment add_subdirectory(examples)
in CMakeLists.txt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值