MNN学习笔记(1)-----MNN介绍和环境编译

MNN介绍:

  MNN是 一个轻量级的深度神经网络推理引擎,详细的中文文档;https://www.yuque.com/mnn/cn。github地址:https://github.com/alibaba/MNN;整体的架构如下图所示:

                                                             

           MNN支持对tensorflow、caffe、onnx等模型的转换。

MNN的编译:

推理部分编译:

./schema/generate.sh
mkdir build && cd build && cmake .. && make -j8

编译训练部分:

cmake .. -DMNN_BUILD_TRAIN=ON
make -j8

转换部分编译:

cd build
cmake .. -DMNN_BUILD_CONVERTER=true && make -j4

执行命令完成tf模型转换为mnn模型:

 ./MNNConvert -f TF --modelFile model-mobilenet_v1_075.pb --MNNModel donkey.mnn --bizCode biz

  pb文件地址:https://github.com/wudafucode/machine_learning

posted on 2020-08-09 02:04  xgcode  阅读(2495)  评论(0编辑  收藏  举报