From a334277cd1acdd0331fe89668ac56e0a4a680488 Mon Sep 17 00:00:00 2001 From: Ting Wang Date: Tue, 1 Sep 2020 18:02:16 +0800 Subject: [PATCH] update lite links Signed-off-by: Ting Wang --- .../tutorials/source_en/use/converter_tool.md | 73 ------------------- .../source_zh_cn/use/benchmark_tool.md | 4 +- .../source_zh_cn/use/converter_tool.md | 4 +- .../source_zh_cn/use/timeprofiler_tool.md | 4 +- 4 files changed, 6 insertions(+), 79 deletions(-) diff --git a/lite/tutorials/source_en/use/converter_tool.md b/lite/tutorials/source_en/use/converter_tool.md index 8a9a0d1c..70acf426 100644 --- a/lite/tutorials/source_en/use/converter_tool.md +++ b/lite/tutorials/source_en/use/converter_tool.md @@ -7,11 +7,7 @@ - [Linux Environment Instructions](#linux-environment-instructions) - [Environment Preparation](#environment-preparation) - [Example](#example) - - [Windows Environment Instructions](#windows-environment-instructions) - - [Environment Preparation](#environment-preparation-1) - [Parameter Description](#parameter-description) - - [Example](#example-1) - - [Parameter Description](#parameter-description-1) @@ -88,75 +84,6 @@ The following describes how to use the conversion command by using several commo ``` INFO [converter/converter.cc:190] Runconverter] CONVERTER RESULT: SUCCESS! ``` - -## Windows Environment Instructions - -### Environment Preparation - -To use the MindSpore Lite model conversion tool, the following environment preparations are required. - --Compile: The model conversion tool code is in the `mindspore/lite/tools/converter` directory of the MindSpore source code, refer to the [Environment Requirements](https://www.mindspore.cn/lite/tutorials/en) in the deployment document /master/compile.html#id6) and [Compile Example](https://www.mindspore.cn/lite/tutorials/en/master/deploy.html#id8) to compile the Windows version. - --Run: Refer to [Compile Output](https://www.mindspore.cn/lite/tutorials/en/master/compile.html#id9) in the deployment document to obtain the `converter` tool, and set MinGW/ Copy several dependent files (libgcc_s_seh-1.dll, libwinpthread-1.dll, libssp-0.dll, libstdc++-6.dll) in the bin directory to the main directory of the `converter` tool. - -### Parameter Description - -Reference description Linux environment model conversion tool [parameter description](https://www.mindspore.cn/lite/tutorials/en/master/converter_tool.html#id4) - -### Example - -First, use the cmd tool to enter the command to compile in the root directory of the source code, refer to `compile.md`. -```bash -call build.bat lite -``` - -Then, set the log printing level to INFO. -```bash -set MSLOG=INFO -``` - -Several common examples are selected below to illustrate the use of conversion commands. - --Take Caffe model LeNet as an example to execute the conversion command. - - ```bash - call converter_lite --fmk=CAFFE --modelFile=lenet.prototxt --weightFile=lenet.caffemodel --outputFile=lenet - ``` - - In this example, because the Caffe model is used, two input files of model structure and model weight are required. Then plus fmk type and output path two parameters which are required, you can successfully execute. - - The result is shown as: - ``` - INFO [converter/converter.cc:190] Runconverter] CONVERTER RESULT: SUCCESS! - ``` - This means that the Caffe model has been successfully converted to the MindSpore Lite model and the new file `lenet.ms` has been obtained. - -- Take MindSpore, TensorFlow Lite, ONNX model format and perceptual quantization model as examples to execute conversion commands. - - - MindSpore model `model.mindir` - ```bash - call converter_lite --fmk=MS --modelFile=model.mindir --outputFile=model - ``` - - - TensorFlow Lite model`model.tflite` - ```bash - call converter_lite --fmk=TFLITE --modelFile=model.tflite --outputFile=model - ``` - - - ONNX model`model.onnx` - ```bash - call converter_lite --fmk=ONNX --modelFile=model.onnx --outputFile=model - ``` - - - TensorFlow Lite awaring quant model `model_quant.tflite` - ```bash - call converter_lite --fmk=TFLITE --modelFile=model_quant.tflite --outputFile=model --quantType=AwareTraining - ``` - - In the above cases, the following conversion success prompt is displayed, and the `model.ms` target file is obtained at the same time. - ``` - INFO [converter/converter.cc:190] Runconverter] CONVERTER RESULT: SUCCESS! - ``` ### Parameter Description diff --git a/lite/tutorials/source_zh_cn/use/benchmark_tool.md b/lite/tutorials/source_zh_cn/use/benchmark_tool.md index 60b41232..fd5d72a2 100644 --- a/lite/tutorials/source_zh_cn/use/benchmark_tool.md +++ b/lite/tutorials/source_zh_cn/use/benchmark_tool.md @@ -22,9 +22,9 @@ Benchmark工具是一款可以对MindSpore Lite模型进行基准测试的工具 使用Benchmark工具,需要进行如下环境准备工作。 -- 编译:Benchmark工具代码在MindSpore源码的`mindspore/lite/tools/benchmark`目录中,参考构建文档中的[环境要求](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id2)和[编译示例](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id4)执行编译。 +- 编译:Benchmark工具代码在MindSpore源码的`mindspore/lite/tools/benchmark`目录中,参考构建文档中的[环境要求](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id1)和[编译示例](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id3)执行编译。 -- 运行:参考构建文档中的[编译输出](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id5),获得`benchmark`工具,并配置环境变量。 +- 运行:参考构建文档中的[编译输出](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id4),获得`benchmark`工具,并配置环境变量。 ## 使用示例 diff --git a/lite/tutorials/source_zh_cn/use/converter_tool.md b/lite/tutorials/source_zh_cn/use/converter_tool.md index d92a4680..bc3a79f8 100644 --- a/lite/tutorials/source_zh_cn/use/converter_tool.md +++ b/lite/tutorials/source_zh_cn/use/converter_tool.md @@ -25,9 +25,9 @@ MindSpore Lite提供离线转换模型功能的工具,支持多种类型的模 使用MindSpore Lite模型转换工具,需要进行如下环境准备工作。 -- 编译:模型转换工具代码在MindSpore源码的`mindspore/lite/tools/converter`目录中,参考构建文档中的[环境要求](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id2)和[编译示例](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id4)编译x86_64版本。 +- 编译:模型转换工具代码在MindSpore源码的`mindspore/lite/tools/converter`目录中,参考构建文档中的[环境要求](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id1)和[编译示例](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id3)编译x86_64版本。 -- 运行:参考构建文档中的[编译输出](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id5),获得`converter`工具,并配置环境变量。 +- 运行:参考构建文档中的[编译输出](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id4),获得`converter`工具,并配置环境变量。 ### 使用示例 diff --git a/lite/tutorials/source_zh_cn/use/timeprofiler_tool.md b/lite/tutorials/source_zh_cn/use/timeprofiler_tool.md index 1b2e3b2f..f96b7df7 100644 --- a/lite/tutorials/source_zh_cn/use/timeprofiler_tool.md +++ b/lite/tutorials/source_zh_cn/use/timeprofiler_tool.md @@ -20,9 +20,9 @@ TimeProfiler工具可以对MindSpore Lite模型网络层的前向推理进行耗 使用TimeProfiler工具,需要进行如下环境准备工作。 -- 编译:TimeProfiler工具代码在MindSpore源码的`mindspore/lite/tools/time_profile`目录中,参考构建文档中的[环境要求](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id2)和[编译示例](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id4)执行编译。 +- 编译:TimeProfiler工具代码在MindSpore源码的`mindspore/lite/tools/time_profile`目录中,参考构建文档中的[环境要求](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id1)和[编译示例](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id3)执行编译。 -- 运行:参考部署文档中的[编译输出](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id5),获得`timeprofile`工具,并配置环境变量。 +- 运行:参考部署文档中的[编译输出](https://www.mindspore.cn/lite/tutorial/zh-CN/master/build.html#id4),获得`timeprofile`工具,并配置环境变量。 ## 使用示例 -- GitLab