提交 1ae8075a 编写于 作者: T TonyWang222 提交者: wangtongyu6

fixed 2d3135d4 from https://gitee.com/TonyWang222/OpenHarmonyDocs/pulls/13520

change converter link

Change-Id: Icb3ea4627429623a8803bb4dafef90fbd0e63397
Signed-off-by: NTonyWang222 <wangtongyu6@huawei.com>
上级 a6b98e54
...@@ -61,7 +61,7 @@ The development process consists of the following main steps: ...@@ -61,7 +61,7 @@ The development process consists of the following main steps:
The required model can be downloaded directly or obtained using the model conversion tool. The required model can be downloaded directly or obtained using the model conversion tool.
- If the downloaded model is in the `.ms` format, you can use it directly for inference. The following uses the **mobilenetv2.ms** model as an example. - If the downloaded model is in the `.ms` format, you can use it directly for inference. The following uses the **mobilenetv2.ms** model as an example.
- If the downloaded model uses a third-party framework, such as TensorFlow, TensorFlow Lite, Caffe, or ONNX, you can use the [model conversion tool](https://www.mindspore.cn/lite/docs/en/r1.5/use/benchmark_tool.html) to convert it to the `.ms` format. - If the downloaded model uses a third-party framework, such as TensorFlow, TensorFlow Lite, Caffe, or ONNX, you can use the [model conversion tool](https://www.mindspore.cn/lite/docs/zh-CN/r1.5/use/downloads.html#id1) to convert it to the `.ms` format.
2. Create a context, and set parameters such as the number of runtime threads and device type. 2. Create a context, and set parameters such as the number of runtime threads and device type.
......
...@@ -85,7 +85,7 @@ int GenerateInputDataWithRandom(OH_AI_TensorHandleArray inputs) { ...@@ -85,7 +85,7 @@ int GenerateInputDataWithRandom(OH_AI_TensorHandleArray inputs) {
需要的模型可以直接下载,也可以通过模型转换工具获得。 需要的模型可以直接下载,也可以通过模型转换工具获得。
- 下载模型的格式若为`.ms`,则可以直接使用。本文以mobilenetv2.ms为例。 - 下载模型的格式若为`.ms`,则可以直接使用。本文以mobilenetv2.ms为例。
- 如果是第三方框架的模型,比如 TensorFlow、TensorFlow Lite、Caffe、ONNX等,可以使用[模型转换工具](https://www.mindspore.cn/lite/docs/zh-CN/r1.5/use/benchmark_tool.html)转换为`.ms`格式的模型文件。 - 如果是第三方框架的模型,比如 TensorFlow、TensorFlow Lite、Caffe、ONNX等,可以使用[模型转换工具](https://www.mindspore.cn/lite/docs/zh-CN/r1.5/use/downloads.html#id1)转换为`.ms`格式的模型文件。
2. 创建上下文,设置线程数、设备类型等参数。 2. 创建上下文,设置线程数、设备类型等参数。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册