
MNN
Begin,again
这个作者很懒,什么都没留下…
展开
-
win10 MNNConverter.exe 工具
链接:https://pan.baidu.com/s/1w1c3h7PhtM8OkfjftxpAEQ提取码:ko10原创 2021-08-23 17:39:19 · 550 阅读 · 0 评论 -
MNN Android环境编译问题-missing Protobuf_LIBRARIES+Could not find toolchain file: /build/cmake/android.t
Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)Call Stack (most recent call first):遇到上述的情况,可以按照以下顺序进行解决:1.protoc --version(验证是否已经正确安装protobuf)若没有正确安装,终端中输入以下指令:sudo apt-get install libprotobuf-dev protobuf-compiler2.whic原创 2021-07-19 15:05:36 · 1384 阅读 · 0 评论 -
ubuntu搭建MNN环境
Ubuntu搭建MNN环境一、安装g++、cmake、protobuf sudo apt-get install 即可,建议protobuf的版本>3.0, g++版本>4.9$ sudo apt-get install autoconf automake libtool curl make g++ unzip$ git clone https://github.com/google/protobuf.git$ cd protobuf$ git submodule update -原创 2021-07-14 21:05:25 · 1375 阅读 · 5 评论 -
实现MNN推理
在将torch模型转换为MNN模型之后,我们可以有C++,Python API两种方式进行验证转换模型的准确性以及推理时间的比较,本文档主要实现的是借助python API的方式。之前一直使用的是creatsession的方式,没想到各种坑,最后发现借助MNN.expr很容易就实现了MNN的推理实现,分享给大家import MNN.expr as Fimport cv2import torchimport numpy as npmnn_model_path = './yolo.mnn'image原创 2021-07-16 15:48:49 · 1175 阅读 · 0 评论