diff --git a/tutorials/source_en/orange_pi/dev_start.md b/tutorials/source_en/orange_pi/dev_start.md index 60849e3302cbb41c76649dda5c751c6c71875ed8..55fc7bc84ff7b759df1e0969d06dc7ec534aa9c9 100644 --- a/tutorials/source_en/orange_pi/dev_start.md +++ b/tutorials/source_en/orange_pi/dev_start.md @@ -10,7 +10,7 @@ After obtaining the OrangePi AIpro development board, developers first need to c | OrangePi AIpro | Image | CANN Toolkit/Kernels | MindSpore | | :----:| :----: | :----:| :----: | -| 8T 16G | Ubuntu | 8.0.0beta1| 2.5.0 | +| 8T 16G | Ubuntu | 8.1.RC1| 2.6.0 | ### Image Burning @@ -368,4 +368,4 @@ The required environment for the operation of this case: | OrangePi AIpro | Image | CANN Toolkit/Kernels | MindSpore | | :----:| :----: | :----:| :----: | -| 8T 16G | Ubuntu | 8.0.0beta1| 2.5.0 | \ No newline at end of file +| 8T 16G | Ubuntu | 8.1.RC1| 2.6.0 | \ No newline at end of file diff --git a/tutorials/source_en/orange_pi/model_infer.md b/tutorials/source_en/orange_pi/model_infer.md index 5c9533c1f0b6078685671254fab181f5589aa4e3..c41b3b120ccd4516dde641334000c5b47d9947d5 100644 --- a/tutorials/source_en/orange_pi/model_infer.md +++ b/tutorials/source_en/orange_pi/model_infer.md @@ -20,10 +20,12 @@ Step2 Enter the case catalog. The downloaded code package is in the following directory of the OrangePi AIpro development board: /home/HwHiAiUser/samples/notebooks. -The project catalog is listed below: +The code package mainly contains two parts: Online and Offline. The Online part is developed based on MindSpore, the Offline part is about offline inference. The Online part is further divided into three categories: inference (inference cases), training (training cases), and community (third-party application cases). + +Taking the inference cases as an example, the project catalog is listed below: ```bash -/home/HwHiAiUser/samples/notebooks/orange-pi-mindspore/Online/ +/home/HwHiAiUser/samples/notebooks/orange-pi-mindspore/Online/inference 01-quick_start 02-ResNet50 03-ViT @@ -35,12 +37,14 @@ The project catalog is listed below: 09-GAN 10-DCGAN 11-Pix2Pix -12-Diffusion +12-Diffusion 13-ResNet50_transfer 14-qwen1.5-0.5b 15-tinyllama 16-DctNet 17-DeepSeek-R1-Distill-Qwen-1.5B +18-DeepSeek-Janus-Pro-1B +19-MiniCPM3 ``` ## 2. Inference Execution @@ -48,7 +52,7 @@ The project catalog is listed below: Step 1 Launch the Jupyter Lab interface. ```bash -(base) HwHiAiUser@orangepiaipro:~$ cd /home/HwHiAiUser/samples/notebooks/ +(base) HwHiAiUser@orangepiaipro:~$ cd /home/HwHiAiUser/samples/notebooks/ (base) HwHiAiUser@orangepiaipro:~$ ./start_notebook.sh ``` @@ -66,15 +70,17 @@ Then enter the URL link you see above in your browser to log into the Jupyter La Step 2 In the Jupyter Lab interface, double-click the case directory shown in the figure below, take “04-FCN” as an example here, you can enter the case directory. The operation process of other cases is similar, just select the corresponding case directory and .ipynb file. -![model-infer4](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/tutorials/source_zh_cn/orange_pi/images/model_infer4.png) +![model-infer4](../../source_zh_cn/orange_pi/images/model_infer4.png) Step 3 In this directory there are all the resources to run the sample, where mindspore_fcn8s.ipynb is the file to run the sample in Jupyter Lab. Double-click to open the mindspore_fcn8s.ipynb, which will be displayed in the right window. The contents of the mindspore_fcn8s.ipynb file are shown in the following figure: -![model-infer5](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/tutorials/source_zh_cn/orange_pi/images/model_infer5.png) +![model-infer5](../../source_zh_cn/orange_pi/images/model_infer5.png) + +The beginning of the file describes the information of hardware resources (Orange Pi development board) and the versions of CANN and MindSpore required for running the sample. Please note to check the environment. For details on environment checking and setup, refer to [Environment Setup Guide](https://www.mindspore.cn/tutorials/en/r2.7.0rc1/orange_pi/environment_setup.html). Step 4 Click the ⏩ button to run the sample. In the pop-up dialog box, click the "Restart" button, then the sample begins to run. -![model-infer6](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.7.0rc1/tutorials/source_zh_cn/orange_pi/images/model_infer6.png) +![model-infer6](../../source_zh_cn/orange_pi/images/model_infer6.png) ## 3. Environment Cleaning diff --git a/tutorials/source_zh_cn/orange_pi/dev_start.ipynb b/tutorials/source_zh_cn/orange_pi/dev_start.ipynb index 44f1536e3b27b35912525449211575004d9a2a08..1d46f705e0ff8f8973914e5ba076c17ffb2033bd 100644 --- a/tutorials/source_zh_cn/orange_pi/dev_start.ipynb +++ b/tutorials/source_zh_cn/orange_pi/dev_start.ipynb @@ -21,7 +21,7 @@ "\n", "| 香橙派AIpro | 镜像 | CANN Toolkit/Kernels | MindSpore |\n", "| :----:| :----: | :----:| :----: |\n", - "| 8T 16G | Ubuntu | 8.0.0beta1| 2.5.0 |\n", + "| 8T 16G | Ubuntu | 8.1.RC1| 2.6.0 |\n", "\n", "### 镜像烧录\n", "\n", @@ -618,13 +618,13 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "本案例已同步上线[GitHub仓](https://github.com/mindspore-courses/orange-pi-mindspore/tree/master/Online/01-quick%20start),更多案例可参考该仓库。\n", + "本案例已同步上线[GitHub仓](https://github.com/mindspore-courses/orange-pi-mindspore/tree/master/Online/inference/01-quick%20start),更多案例可参考该仓库。\n", "\n", "本案例运行所需环境:\n", "\n", "| 香橙派AIpro | 镜像 | CANN Toolkit/Kernels | MindSpore |\n", "| :----:| :----: | :----:| :----: |\n", - "| 8T 16G | Ubuntu | 8.0.0beta1| 2.5.0 |" + "| 8T 16G | Ubuntu | 8.1.RC1| 2.6.0 |" ] } ], diff --git a/tutorials/source_zh_cn/orange_pi/images/model_infer4.png b/tutorials/source_zh_cn/orange_pi/images/model_infer4.png index d50949d62087994cfc98b04bfd1af1d35a340154..62c796a46c404e2260cbdf68bddfd653498760c8 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/model_infer4.png and b/tutorials/source_zh_cn/orange_pi/images/model_infer4.png differ diff --git a/tutorials/source_zh_cn/orange_pi/images/model_infer5.png b/tutorials/source_zh_cn/orange_pi/images/model_infer5.png index 81e85dd24aa9b04b8efa3bb06a80a22e1224e09a..8738b07ca0e0b7b2f49fe2a3050b8cebe5d2e8d2 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/model_infer5.png and b/tutorials/source_zh_cn/orange_pi/images/model_infer5.png differ diff --git a/tutorials/source_zh_cn/orange_pi/images/model_infer6.png b/tutorials/source_zh_cn/orange_pi/images/model_infer6.png index 90fe5d42f2cd754b5f0e275050d6814c268d8b8a..0b572d844d13adcaf98e4b557e21f527b0bd82d7 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/model_infer6.png and b/tutorials/source_zh_cn/orange_pi/images/model_infer6.png differ diff --git a/tutorials/source_zh_cn/orange_pi/model_infer.md b/tutorials/source_zh_cn/orange_pi/model_infer.md index ff65ed7640c116d3175817464666c042889c51d6..e1c931c94c3e5cd28c75c083465b9b0130159f15 100644 --- a/tutorials/source_zh_cn/orange_pi/model_infer.md +++ b/tutorials/source_zh_cn/orange_pi/model_infer.md @@ -20,10 +20,12 @@ 下载的代码包在香橙派开发板的如下目录中:/home/HwHiAiUser/samples/notebooks。 -项目目录如下: +代码包主要包含Online和Offline两个部分。Online部分基于MindSpore框架开发,Offline部分为离线推理,其中Online部分又细分为三类:inference(推理案例)、training(训练案例)以及community(第三方应用案例)。 + +以推理案例为例,项目目录如下: ```bash -/home/HwHiAiUser/samples/notebooks/orange-pi-mindspore/Online/ +/home/HwHiAiUser/samples/notebooks/orange-pi-mindspore/Online/inference 01-quick_start 02-ResNet50 03-ViT @@ -35,12 +37,14 @@ 09-GAN 10-DCGAN 11-Pix2Pix -12-Diffusion +12-Diffusion 13-ResNet50_transfer 14-qwen1.5-0.5b 15-tinyllama 16-DctNet 17-DeepSeek-R1-Distill-Qwen-1.5B +18-DeepSeek-Janus-Pro-1B +19-MiniCPM3 ``` ## 2. 推理执行 @@ -48,7 +52,7 @@ 步骤1 启动Jupyter Lab界面。 ```bash -(base) HwHiAiUser@orangepiaipro:~$ cd /home/HwHiAiUser/samples/notebooks/ +(base) HwHiAiUser@orangepiaipro:~$ cd /home/HwHiAiUser/samples/notebooks/ (base) HwHiAiUser@orangepiaipro:~$ ./start_notebook.sh ``` @@ -72,6 +76,8 @@ ![model-infer5](./images/model_infer5.png) +文件开头说明了硬件资源(香橙派开发板)信息,以及运行样例所需的CANN和MindSpore等版本,请注意检查环境,环境的检查与搭建详见[环境搭建指南](https://www.mindspore.cn/tutorials/zh-CN/r2.7.0rc1/orange_pi/environment_setup.html)。 + 步骤4 单击⏩按钮运行样例,在弹出的对话框中单击“Restart”按钮,此时该样例开始运行。 ![model-infer6](./images/model_infer6.png)