From ca0f36a323a7da2abfb0eac7eed3cde859567b6b Mon Sep 17 00:00:00 2001 From: hukang hwx963878 Date: Mon, 21 Sep 2020 19:19:44 +0800 Subject: [PATCH 1/3] fix some translations and remove jdk links on quick_start on branch r1.0 --- tutorials/lite/source_en/quick_start/quick_start.md | 9 ++++----- tutorials/lite/source_zh_cn/quick_start/quick_start.md | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tutorials/lite/source_en/quick_start/quick_start.md b/tutorials/lite/source_en/quick_start/quick_start.md index 40a337274f..aaba91a607 100644 --- a/tutorials/lite/source_en/quick_start/quick_start.md +++ b/tutorials/lite/source_en/quick_start/quick_start.md @@ -56,7 +56,6 @@ The following section describes how to build and execute an on-device image clas - Native development kit (NDK) 21.3 - [CMake](https://cmake.org/download) 3.10.2 - Android software development kit (SDK) 26 or later -- [JDK]( https://www.oracle.com/downloads/otn-pub/java/JDK/) 1.8 or later ### Building and Running @@ -80,7 +79,7 @@ The following section describes how to build and execute an on-device image clas For details about how to connect the Android Studio to a device for debugging, see . - The mobile phone needs to be turn on "USB debugging mode" before Android Studio can recognize the mobile phone. Huawei mobile phones generally turn on "USB debugging model" in Settings > system and update > developer Options > USB debugging. + The mobile phone needs to turn on "USB debugging mode" for Android Studio to recognize the phone. In general, Huawei mobile phones turn on "USB debugging mode" in Settings -> System and Update -> Developer Options -> USB Debugging. 3. Continue the installation on the Android device. After the installation is complete, you can view the content captured by a camera and the inference result. @@ -179,7 +178,7 @@ target_link_libraries( -In this example, the download.gradle File configuration auto download MindSpore Lite version, placed in the `app/src/main/cpp/mindspore_lite_x.x.x-minddata-arm64-cpu` directory. +In this example, the build process automatically downloads the MindSpore Lite version file by the download.gradle file and saves it in the `app/src/main/cpp/mindspore_lite_x.x.x-minddata-arm64-cpu` directory. Note: if the automatic download fails, please manually download the relevant library files and put them in the corresponding location. @@ -187,7 +186,7 @@ MindSpore Lite version [MindSpore Lite version](https://download.mindspore.cn/mo ### Downloading and Deploying a Model File -In this example, the download.gradle File configuration auto download `mobilenetv2.ms `and placed in the 'app / libs / arm64-v8a' directory. +In this example, the build process automatically downloads the `mobilenetv2.ms ` by the download.gradle file and saves in the 'app / libs / arm64-v8a' directory. Note: if the automatic download fails, please manually download the relevant library files and put them in the corresponding location. @@ -266,7 +265,7 @@ The inference code process is as follows. For details about the complete code, s delete[] (dataHWC); ``` -3. Pretreat the input data. +3. Preprocessing the input data. ```cpp bool PreProcessImageData(const LiteMat &lite_mat_bgr, LiteMat *lite_norm_mat_ptr) { diff --git a/tutorials/lite/source_zh_cn/quick_start/quick_start.md b/tutorials/lite/source_zh_cn/quick_start/quick_start.md index d9726b00dc..344bb0a8df 100644 --- a/tutorials/lite/source_zh_cn/quick_start/quick_start.md +++ b/tutorials/lite/source_zh_cn/quick_start/quick_start.md @@ -54,8 +54,7 @@ MindSpore Model Zoo中图像分类模型可[在此下载](https://download.minds - Android Studio >= 3.2 (推荐4.0以上版本) - NDK 21.3 - [CMake](https://cmake.org/download) 3.10.2 -- Android SDK >= 26 -- [JDK]( https://www.oracle.com/downloads/otn-pub/java/JDK/) >= 1.8 +- Android SDK >= 26 ### 构建与运行 -- Gitee From 955a576310f10c112e14cc5d08495934f1ec66f4 Mon Sep 17 00:00:00 2001 From: hukang hwx963878 Date: Mon, 21 Sep 2020 19:34:35 +0800 Subject: [PATCH 2/3] add jdk title --- tutorials/lite/source_en/quick_start/quick_start.md | 1 + tutorials/lite/source_zh_cn/quick_start/quick_start.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tutorials/lite/source_en/quick_start/quick_start.md b/tutorials/lite/source_en/quick_start/quick_start.md index aaba91a607..3f100af04b 100644 --- a/tutorials/lite/source_en/quick_start/quick_start.md +++ b/tutorials/lite/source_en/quick_start/quick_start.md @@ -56,6 +56,7 @@ The following section describes how to build and execute an on-device image clas - Native development kit (NDK) 21.3 - [CMake](https://cmake.org/download) 3.10.2 - Android software development kit (SDK) 26 or later +- JDK 1.8 or later ### Building and Running diff --git a/tutorials/lite/source_zh_cn/quick_start/quick_start.md b/tutorials/lite/source_zh_cn/quick_start/quick_start.md index 344bb0a8df..8a76f7a367 100644 --- a/tutorials/lite/source_zh_cn/quick_start/quick_start.md +++ b/tutorials/lite/source_zh_cn/quick_start/quick_start.md @@ -54,7 +54,8 @@ MindSpore Model Zoo中图像分类模型可[在此下载](https://download.minds - Android Studio >= 3.2 (推荐4.0以上版本) - NDK 21.3 - [CMake](https://cmake.org/download) 3.10.2 -- Android SDK >= 26 +- Android SDK >= 26 +- JDK >= 1.8 ### 构建与运行 -- Gitee From e277c930c2c04c86dd159168e0e111cbf4aa1518 Mon Sep 17 00:00:00 2001 From: hukang hwx963878 Date: Mon, 21 Sep 2020 20:06:20 +0800 Subject: [PATCH 3/3] fix some translations and remove jdk links on quick_start on branch r1.0 --- tutorials/lite/source_en/quick_start/quick_start.md | 1 + tutorials/lite/source_zh_cn/quick_start/quick_start.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tutorials/lite/source_en/quick_start/quick_start.md b/tutorials/lite/source_en/quick_start/quick_start.md index aaba91a607..3f100af04b 100644 --- a/tutorials/lite/source_en/quick_start/quick_start.md +++ b/tutorials/lite/source_en/quick_start/quick_start.md @@ -56,6 +56,7 @@ The following section describes how to build and execute an on-device image clas - Native development kit (NDK) 21.3 - [CMake](https://cmake.org/download) 3.10.2 - Android software development kit (SDK) 26 or later +- JDK 1.8 or later ### Building and Running diff --git a/tutorials/lite/source_zh_cn/quick_start/quick_start.md b/tutorials/lite/source_zh_cn/quick_start/quick_start.md index 344bb0a8df..8a76f7a367 100644 --- a/tutorials/lite/source_zh_cn/quick_start/quick_start.md +++ b/tutorials/lite/source_zh_cn/quick_start/quick_start.md @@ -54,7 +54,8 @@ MindSpore Model Zoo中图像分类模型可[在此下载](https://download.minds - Android Studio >= 3.2 (推荐4.0以上版本) - NDK 21.3 - [CMake](https://cmake.org/download) 3.10.2 -- Android SDK >= 26 +- Android SDK >= 26 +- JDK >= 1.8 ### 构建与运行 -- Gitee