1、编译libtensorflow-lite.a库:

ubuntu下交叉环境编译:

https://blog.csdn.net/computerme/article/details/80345065

https://blog.csdn.net/dia323/article/details/89388097

https://www.wandouip.com/t5i36754/

2、将pb模型转为tflite

tflite_convert --output_file MTCNN_mobile/pnet.tflite --graph_def_file frozen_graphs/pnet.pb --input_arrays "input" --input_shapes "1,600,800,3" --output_arrays cls_prob,bbox_pred,landmark_pred --output_format TFLITE

https://github.com/jiangxiluning/facenet_mtcnn_to_mobile/blob/master/mtcnn/to_tflite.sh

https://jefby.github.io/2018/08/20/%E5%B0%86mobilenet-ssd-tensorflow-pb%E8%BD%AC%E6%8D%A2%E4%B8%BAtflite%E7%9A%84%E8%AF%A6%E7%BB%86%E6%AD%A5%E9%AA%A4/

3、将tflite模型量化

官方例子: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tutorials/post_training_quant.ipynb

github上的一些使用例子:

https://github.com/mattn/webcam-detect-tflite

https://github.com/mattn/tflite-sin

https://github.com/ninetailskim/tflite/tree/master/SSD_mobileNet

https://github.com/nxp-gf/MTCNN-tflite

https://github.com/jiangxiluning/facenet_mtcnn_to_mobile

在树莓派下测mtcnn,速度慢成狗,弃坑

最新文章

  1. css设置select高度(IE,FF,Chrome)[转]
  2. 语义化HTML:ul、ol和dl
  3. 【原】Gradle调用shell脚本和python脚本并传参
  4. 【循序渐进学Python】1. Python基础知识
  5. Android开发开始--环境搭建
  6. 自定义控件(视图)2期笔记08:自定义控件之 9patch图说明
  7. TensorFlow 深度学习笔记 从线性分类器到深度神经网络
  8. 初窥Linux 之 文件权限
  9. SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'dtdate' 解决方法
  10. 转 12C 连接CDB和PDB
  11. (转)python中的*args和**kw到底是个啥。看下面的例子就会懂了
  12. makefile中":=","=","?=","+=" 之间的区别
  13. HTML5详解(一)
  14. 使用python操作XML增删改查
  15. 普通路由器刷开源固件DD-WRT的简单过程
  16. C#版 - LeetCode 148. Sort List 解题报告(归并排序小结)
  17. HDU 1016(素数环 深搜)
  18. thinkphp 3.2.1 URL 大小写问题 下面有具体说明
  19. Android:intent的基础
  20. SqlServer当前月份时间

热门文章

  1. LeetCode_70.爬楼梯
  2. leetcode-mid-math-371. Sum of Two Integers-NO-???
  3. 使用System.ComponentModel.DataAnnotations验证字段数据正确性
  4. git跟yum一样 linux下的命令使用和思想是类似的
  5. 用Vue来实现音乐播放器(三十八):歌词滚动列表的问题
  6. 解决hibernate 序列化死循环的问题
  7. Linux监控命令之==>vmstat
  8. C 语言的函数 - 内存分析
  9. 学习使用CGI和HTML
  10. TortoiseSVN-1.9.7 对应 eclipse svn 插件的 更新