zoukankan      html  css  js  c++  java
  • tflite

    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,速度慢成狗,弃坑

  • 相关阅读:
    2251: [2010Beijing Wc]外星联络
    1500 后缀排序
    1492: [NOI2007]货币兑换Cash【CDQ分治】
    P3380 【模板】二逼平衡树(树套树)
    python opencv
    pycharm调试
    pycharm中选择python interpreter
    创建使用pycharm virtualenv
    reload函数
    python3编写发送四种http请求的脚本
  • 原文地址:https://www.cnblogs.com/573177885qq/p/10942576.html
Copyright © 2011-2022 走看看