Firefly开源社区

打印 上一主题 下一主题

[人工智能] rk3399ubuntu18.04,MNN移动端深度学习框架搭建

23

积分

0

威望

0

贡献

技术小白

积分
23

rk3399ubuntu18.04,MNN移动端深度学习框架搭建

发表于 2020-5-20 20:46:22      浏览:9610 | 回复:2        打印      只看该作者   [复制链接] 楼主
本帖最后由 -Forest- 于 2020-5-20 21:36 编辑

上一篇rk3399ubuntu18.04 pytorch环境搭建,可是pytorch在3399上实在太慢了,单位:秒,最小的mobilenetv3-small都得4秒多,只能体验下这个过程,移动端还是得需要进行优化,而瑞芯微自家的rknn主推rk3399pro了,选个移动端的框架很有必要了,bat三家都推出了移动端的框架,这次先来安装阿里的MNN:

一:MNN简介

MNN是一个轻量级的深度神经网络推理引擎,在端侧加载深度神经网络模型进行推理预测。目前,MNN已经在阿里巴巴的手机淘宝、手机天猫、优酷等20多个App中使用,覆盖直播、短视频、搜索推荐、商品图像搜索、互动营销、权益发放、安全风控等场景。此外,IoT等场景下也有若干应用。

具体介绍和使用移步官方文档:MNN官方中文文档,本文也是围绕着该文档来。

二 :环境搭建

针对端侧设备特点深度定制和裁剪,无任何依赖,可以方便地部署到移动设备和各种嵌入式设备中。这个框架还是很好编译的:

环境要求

cmake(建议使用3.10或以上版本)

protobuf(使用3.0或以上版本)

gcc(使用4.9或以上版本)

这里cmake和gcc很好装,protobuf费点功夫,接下来主要介绍如何编译安装protobuf:主要参考:P4使用Ubuntu中安装中的问题

安装依赖库
  1. sudo apt-get install autoconf automake libtool curl make g++ unzip
复制代码
下载源码
  1. git clone https://github.com/google/protobuf.git
复制代码

大概7.4m左右(我安装用最新版本的没装上,3.6.1成功:该版本下载:提取码9du0

下载完成后解压文件,得protobuf-3.6.1


进入https://github.com/google/googletest/releases


选择一种压缩格式下载(最好使用我提供的版本1.8.1:提取码uyi2

下载完成后解压文件,得到googletest-release-1.8.1

把googletest-release-1.8.1放入protobuf/third_party文件夹中,删除原来的googletest,再将googletest-release-1.8.1命名为googletes()

cd path/protobuf-3.6.1













回复

使用道具 举报

29

积分

0

威望

0

贡献

技术小白

积分
29
发表于 2020-6-22 15:06:35        只看该作者  沙发

http://v.qq.com/x/search/?q=%E5%A4%A7%E8%BF%9E%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%B8%A9%E5%B7%9E%E4%BB%A3%E5%AD%95%E5%85%AC%E5%8F%B8%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8E%A6%E9%97%A8%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%B3%89%E5%B7%9E%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E9%87%91%E5%8D%8E%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%B8%B8%E5%B7%9E%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8D%97%E9%80%9A%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%98%89%E5%85%B4%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%BE%90%E5%B7%9E%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%83%A0%E5%B7%9E%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E7%8F%A0%E6%B5%B7%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E4%B8%AD%E5%B1%B1%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8F%B0%E5%B7%9E%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E7%83%9F%E5%8F%B0%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%89%AC%E5%B7%9E%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E9%95%BF%E6%98%A5%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%B2%88%E9%98%B3%E4%BB%A3%E5%AD%95%E6%9C%8D%E5%8A%A1%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E7%9F%B3%E5%AE%B6%E5%BA%84%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%85%B0%E5%B7%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E8%A5%BF%E5%AE%81%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E8%A5%BF%E5%AE%89%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E9%93%B6%E5%B7%9D%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E9%83%91%E5%B7%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%B5%8E%E5%8D%97%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%A4%AA%E5%8E%9F%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%90%88%E8%82%A5%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%AD%A6%E6%B1%89%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E9%95%BF%E6%B2%99%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8D%97%E4%BA%AC%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%88%90%E9%83%BD%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E8%B4%B5%E9%98%B3%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%98%86%E6%98%8E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8D%97%E5%AE%81%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%9D%AD%E5%B7%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8D%97%E6%98%8C%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%B9%BF%E5%B7%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E7%A6%8F%E5%B7%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%A4%A9%E6%B4%A5%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%97%A0%E9%94%A1%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%AE%81%E6%B3%A2%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E9%9D%92%E5%B2%9B%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E4%B8%9C%E8%8E%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%B7%B1%E5%9C%B3%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E4%B8%8A%E6%B5%B7%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8C%97%E4%BA%AC%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%A4%A9%E6%B4%A5%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E4%BD%9B%E5%B1%B1%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%A4%A7%E8%BF%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%B8%A9%E5%B7%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8E%A6%E9%97%A8%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E6%B3%89%E5%B7%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E9%87%91%E5%8D%8E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%B8%B8%E5%B7%9E%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%8D%97%E9%80%9A%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       
http://v.qq.com/x/search/?q=%E5%98%89%E5%85%B4%E4%BB%A3%E5%AD%95%E4%B8%AD%E4%BB%8B%E3%80%90%E7%BD%91%E5%9D%80%3A9n7a.com%E3%80%91       

回复

使用道具 举报

3

积分

0

威望

0

贡献

吃瓜的群众

积分
3
发表于 2020-8-27 15:53:48        只看该作者  板凳
dfasdf
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表