diff --git a/docs/mindspore/source_en/orange_pi/dev_start.md b/docs/mindspore/source_en/orange_pi/dev_start.md index ff350dacc558e54c9056d16c56840d5b4ec52e34..9f4668692a35ad6885c558a2f3c3b23d9ae3c292 100644 --- a/docs/mindspore/source_en/orange_pi/dev_start.md +++ b/docs/mindspore/source_en/orange_pi/dev_start.md @@ -18,11 +18,11 @@ To run this case, it is necessary to burn the Ubuntu image on the OrangePi AIpro ### CANN Upgrading -Please refer to [CANN Upgrading](https://www.mindspore.cn/docs/en/r2.5.0/orange_pi/environment_setup.html#2-cann-upgrading). +Please refer to [CANN Upgrading](https://www.mindspore.cn/docs/en/r2.5.0/orange_pi/environment_setup.html#3-cann-upgrading). ### MindSpore Upgrading -Please refer to [MindSpore Upgrading](https://www.mindspore.cn/docs/en/r2.5.0/orange_pi/environment_setup.html#3-mindspore-upgrading). +Please refer to [MindSpore Upgrading](https://www.mindspore.cn/docs/en/r2.5.0/orange_pi/environment_setup.html#4-mindspore-upgrading). ```python import mindspore @@ -367,4 +367,4 @@ The required environment for the operation of this case: | OrangePi AIpro | Image | CANN Toolkit/Kernels | MindSpore | | :----:| :----: | :----:| :----: | -| 8T 16G/20T 24G | Ubuntu | 8.0.0beta1| 2.5.0 | \ No newline at end of file +| 8T 16G/20T 24G | Ubuntu | 8.0.0beta1| 2.5.0 | diff --git a/docs/mindspore/source_en/orange_pi/environment_setup.md b/docs/mindspore/source_en/orange_pi/environment_setup.md index 16c66f2e1b19b62a09bef236e8ab718b180c972c..4fda8b1cd36ea27d7b07e11e2111f756e51708d5 100644 --- a/docs/mindspore/source_en/orange_pi/environment_setup.md +++ b/docs/mindspore/source_en/orange_pi/environment_setup.md @@ -12,7 +12,7 @@ Image burning can be performed in any operating system. Here we will take Window Step 1 Insert the Micro SD card into the card reader and the card reader into the PC. -![environment-setup-1-1](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-1.jpg) +![environment-setup-1-1](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-1.jpg) ### 1.2 Downloading the Ubuntu image @@ -22,11 +22,11 @@ Step 1 Click [here](http://www.orangepi.cn/html/hardWare/computerAndMicrocontrol Step 2 Click the arrow icon in the picture to jump to the Baidu Wangpan download page. -![environment-setup-1-2](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-2.png) +![environment-setup-1-2](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-2.png) Step 3 Select the desktop version to download, it is recommended to download the 0318 version of the environment. -![environment-setup-1-3](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-3.png) +![environment-setup-1-3](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-3.png) Step 4 Alternative download method. @@ -42,23 +42,23 @@ There are two card-making tools balenaEtcher, Rufus, and you can choose any one Click [here](https://etcher.balena.io/) to jump to the official website, and click the green download button to jump to where the software is downloaded. - ![environment-setup-1-4](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-4.png) + ![environment-setup-1-4](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-4.png) Step 2 Select to download the Portable version. The Portable version does not require installation, so double-click it to open it and use it. - ![environment-setup-1-5](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-5.png) + ![environment-setup-1-5](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-5.png) Step 3 Alternative download method. If it is too slow to download from the official website, you can use to [this link](https://obs-9be7.obs.cn-east-2.myhuaweicloud.com/OrangePi/balenaEtcher/balenaEtcher-Setup-1.18.4.exe) to download directly the balenaEtcher-Setup-1.18.4 software. - Step 4 Open balenaEtcher. + Step 4 Open balenaEtcher. - ![environment-setup-1-6](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-6.png) + ![environment-setup-1-6](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-6.png) - ![environment-setup-1-7](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-7.png) + ![environment-setup-1-7](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-7.png) - Rufus: @@ -80,19 +80,19 @@ Here we introduce balenaEtcher, Rufus to burn the image, you can burn according 3. Click Start Burning, as shown below: - ![environment-setup-1-8](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-8.png) + ![environment-setup-1-8](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-8.png) It takes about 20 minutes to burn and verify, so please be patient: - ![environment-setup-1-9](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-9.png) + ![environment-setup-1-9](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-9.png) - ![environment-setup-1-10](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-10.png) + ![environment-setup-1-10](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-10.png) Step 2 Burning is complete. After the completion of burning, balenaEtcher is shown in the following figure, if the green indicator icon shows that the image is burned successfully, at this time you can exit balenaEtcher, pull out the TF card and insert it into the TF card slot on the development board to use: - ![environment-setup-1-11](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-11.png) + ![environment-setup-1-11](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-11.png) - Rufus burns images: @@ -100,23 +100,69 @@ Here we introduce balenaEtcher, Rufus to burn the image, you can burn according Insert the sd card into the card reader, insert the card reader into the computer, select the image and sd card, click “Start”. - ![environment-setup-1-12](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-12.png) + ![environment-setup-1-12](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-12.png) Step 2 Burning is complete. Pull out the card reader directly after the wait is over. - ![environment-setup-1-13](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-13.png) + ![environment-setup-1-13](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-13.png) -## 2. CANN Upgrading +## 2. Development Board Startup and Network Connection -### 2.1 Toolkit Upgrading +### 2.1 Development Board Startup -Step 1 Open a terminal and switch the root user. +Insert the TF card with the burned image into the corresponding slot on the development board. Click [here](http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-AIpro.html) to jump to the official website, and refer to the "User Manual" in section 2.8 for specific steps to start the development board. + +![environment-setup-1-20](../../source_zh_cn/orange_pi/images/environment_setup_1-20.png) + +### 2.2 Network Connection + +For the convenience of downloading software packages and running code for subsequent environment upgrades, the development board needs to be connected to a network. Please refer to "3.5 Network Connection Test" in the User Manual for details. + +![environment-setup-1-21](../../source_zh_cn/orange_pi/images/environment_setup_1-21.png) + +### 2.3 Development Board SSH Remote Login (Optional) + +If you need to log in to the development board remotely through SSH, please refer to "3.6 SSH Remote Login to Development Board" in the User Manual for details. + +![environment-setup-1-22](../../source_zh_cn/orange_pi/images/environment_setup_1-22.png) + +### 2.4 Setting Swap Memory (Optional) + +Although the development board has 8GB or 16GB of large memory, some applications require more than 8GB or 16GB of memory. In this case, we can use Swap memory to expand the maximum memory capacity that the system can use. For specific instructions, please refer to the "3.20 Method for Setting Swap Memory" in the user manual. + +![environment-setup-1-23](../../source_zh_cn/orange_pi/images/environment_setup_1-23.png) + +## 3. CANN Upgrading + +### 3.1 Query CANN Version + +Step 1 Use `CTRL+ALT+T` or click on the icon with `$_` at the bottom of the page to open the terminal and keep the HwHiAiUser user logged in. + +![environment-setup-1-14](../../source_zh_cn/orange_pi/images/environment_setup_1-14.png) + +Step 2 Enter the software package installation information file directory. + +```bash +(base) HwHiAiUser@orangepiaipro:~$ cd /usr/local/Ascend/ascend-toolkit/latest/aarch64-linux +``` + +Step 3 Execute the following command to obtain version information. + +```bash +(base) HwHiAiUser@orangepiaipro:~$ cat ascend_toolkit_install.info +``` + +### 3.2 CANN Upgrading -Use `CTRL+ALT+T` or click on the icon with `$_` at the bottom of the page to open the terminal. +If the current CANN version does not meet the development requirements, the CANN version can be upgraded according to the following steps. -![environment-setup-1-14](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-14.png) +#### 3.2.1 Toolkit Upgrading + +Step 1 Use the `CTRL+ALT+T` or click on the icon with `$_` at the bottom of the page to open the terminal and switch to the root user. + +![environment-setup-1-14](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-14.png) Switch the root user, root user password: Mind@123. @@ -130,7 +176,7 @@ Switch the root user, root user password: Mind@123. ``` -Step 2 Remove installed CANN packages from the image to free up disk space and prevent installing new CANN packages from reporting low disk space errors. +Step 2 Remove installed CANN packages to free up disk space and prevent installing new CANN packages from reporting low disk space errors. ```bash @@ -139,9 +185,9 @@ Step 2 Remove installed CANN packages from the image to free up disk space and p ``` -Step 3 Open the official website of Ascend CANN to access the community version of the resource [download address](https://www.hiascend.com/developer/download/community/result?module=cann), download the required version of the toolkit package. Taking 8.0.RC2.alpha003 version as an example, as shown below: +Step 3 Open the official website of Ascend CANN to access the community version of the resource [download address](https://www.hiascend.com/developer/download/community/result?module=cann), download the required version of the toolkit package. Taking 8.0.0.beta1 version as an example, as shown below: -![environment-setup-1-15](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-15.png) +![environment-setup-1-15](../../source_zh_cn/orange_pi/images/environment_setup_1-15.png) > Execute the following commands to select the aarch64 or x86_64 package according to the actual output of the environment. @@ -160,18 +206,18 @@ Step 4 Go to the Toolkit package download directory. Step 5 Add execution permissions to the CANN package. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.0.RC2.alpha003_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.0.0_linux-aarch64.run ``` Step 6 Execute the following command to upgrade the software. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.0.RC2.alpha003_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.0.0_linux-aarch64.run --install ``` -Type Y when this prompt pops up during installation, then press Enter to continue the installation. +Type Y when this prompt pops up during installation, then press Enter to continue the installation. This process takes about 10-15 minutes, please be patient. -![environment-setup-1-16](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-16.png) +![environment-setup-1-16](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.6.0/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-16.png) After the upgrade is completed, if the following message is displayed, the software upgrade is successful: @@ -184,18 +230,19 @@ xxx install success - Path after installing the upgrade (default installation path for root user as an example): “/usr/local/Ascend/ ascend-toolkit/ -Step 7 Configure and load environment variables. +> If the output is incorrect, you need to follow the above steps to upgrade Toolkit again. + +Step 7 Load environment variables. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads # echo 'source /usr/local/Ascend/ascend-toolkit/set_env.sh' >> ~/.bashrc (base) root@orangepiaipro: /home/HwHiAiUser/Downloads # source ~/.bashrc ``` -### 2.2 Kernels Upgrading +#### 3.2.2 Kernels Upgrading -> The binary arithmetic package Kernels relies on the CANN package Toolkit. To perform the upgrade, the current environment needs to have the matching version of Toolkit installed and installed by the same user. +> The binary arithmetic package Kernels relies on the CANN package Toolkit. To perform the upgrade, the current environment needs to have the matching version of Toolkit installed and installed by the root user. Step 1 Open a terminal and switch the root user. @@ -219,7 +266,7 @@ npu-smi info Step 3 Open the official website of Ascend CANN to access the community edition resources [download address](https://www.hiascend.com/developer/download/community/result?module=cann), and download the kernel package that is consistent with the CANN package version and matches the NPU model. As shown in the figure below: -![environment-setup-1-18](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-18.png) +![environment-setup-1-18](../../source_zh_cn/orange_pi/images/environment_setup_1-18.png) Step 4 Go to the Kernels package download directory. @@ -227,18 +274,18 @@ Step 4 Go to the Kernels package download directory. (base) root@orangepiaipro: /usr/local/Ascend/ascend-toolkit# cd /home/HwHiAiUser/Downloads ``` -> Default download directory of Orange Pi AI Pro browser file: /home/HwHiAiUser/Downloads +> Default download directory of OrangePi AIpro browser file: /home/HwHiAiUser/Downloads Step 5 Add execution permissions to the kernels package. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.0.RC2.alpha003_linux.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.0.0_linux-aarch64.run ``` Step 6 Execute the following command to upgrade the software. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.0.RC2.alpha003_linux.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.0.0_linux-aarch64.run--install ``` After the upgrade is completed, if the following message is displayed, the software upgrade is successful: @@ -251,29 +298,45 @@ xxx install success - Path after installing the upgrade (default installation path for root user as an example): "/usr/local/Ascend/ ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/kernel". -## 3. MindSpore Upgrading +> If the output is incorrect, you need to follow the above steps to upgrade Kernels again. -### 3.1 Installing the Official Version of the Website (Taking MindSpore 2.4.10 as an example) +## 4. MindSpore Upgrading + +### 4.1 Querying MindSpore Version + +Step 1 Use `CTRL+ALT+T` or click on the icon with `$_` at the bottom of the page to open the terminal and keep the HwHiAiUser user logged in. + +![environment-setup-1-14](../../source_zh_cn/orange_pi/images/environment_setup_1-14.png) + +Step 2 Execute the following command to obtain version information. + +```bash +(base) HwHiAiUser@orangepiaipro:~$ pip show mindspore +``` + +If the current MindSpore version does not meet the development requirements, the MindSpore version can be upgraded according to the following methods. + +### 4.2 Installing the Official Version of the Website (Taking MindSpore 2.5.0 as an example) + +#### 4.2.1 MindSpore Upgrading Please note that both installation methods for MindSpore need to be performed under the HwHiAiUser user. Choose either method for installation. -Method 1: Use the CTRL+ALT+T shortcut key or click on the icon with $_ at the bottom of the page to open the terminal, and run the pip install command directly on the terminal. +Method 1: Use the CTRL+ALT+T shortcut key or click on the icon with $_ at the bottom of the page to open the terminal, keep the HwHiAiUser user logged in, and run the pip install command directly on the terminal. ```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.4.10 +(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.5.0 ``` -Method 2: Use the CTRL+ALT+T shortcut key or click on the icon with $_ at the bottom of the page to open the terminal. Refer to [MindSpore official website installation tutorial](https://www.mindspore.cn/install/en) to install. +Method 2: Use the CTRL+ALT+T shortcut key or click on the icon with $_ at the bottom of the page to open the terminal, refer to [MindSpore official website installation tutorial](https://www.mindspore.cn/install/en) to install. ```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.4.10/MindSpore/unified/aarch64/mindspore-2.4.10-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.5.0/MindSpore/unified/aarch64/mindspore-2.5.0-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple -# Confirm the operating system and programming language, and the default environment of the Orange Pi development board is linux-aarch64 and python3.9 +# Confirm the operating system and programming language, and the default environment of the OrangePi AIpro development board is linux-aarch64 and python3.9 ``` -### 3.2 Installation Verification - -Execute the following command: +#### 4.2.2 Installation Verification ```bash (base) HwHiAiUser@orangepiaipro:~$ python -c "import mindspore;mindspore.set_context(device_target='Ascend');mindspore.run_check()" @@ -282,6 +345,12 @@ Execute the following command: If the output is as follows, it indicates that MindSpore has been successfully installed. ```bash -MindSpore version: 2.4.10 +MindSpore version: 2.5.0 The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! -``` \ No newline at end of file +``` + +> If the output is incorrect, it needs to be upgraded again according to the MindSpore upgrade method in 4.2.1. + +## Next Suggestion + +At this point, the OrangePi AIpro development board environment has been set up, and you can experience [online model inference based on MindSpore development on the development board](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/model_infer.html). diff --git a/docs/mindspore/source_en/orange_pi/index.md b/docs/mindspore/source_en/orange_pi/index.md new file mode 100644 index 0000000000000000000000000000000000000000..df13561612c30700b2ae6a65573d3b896905f2d4 --- /dev/null +++ b/docs/mindspore/source_en/orange_pi/index.md @@ -0,0 +1,18 @@ +# OrangePi AIpro Development + +[OrangePi AIpro](http://www.orangepi.org/) adopts the route of Ascend AI technology, specifically 4-core 64-bit processor and AI processor, integrated graph processor. + +At present, the system image of OrangePi AIpro development board has been realized with the Ascend MindSpore AI framework pre-installed, and continues to evolve in subsequent version iterations, and currently supports all network models covered by the tutorials on the MindSpore official website. The OrangePi AIpro development board provides developers with the openEuler version and the ubuntu version, both of which are preconfigured with Ascend MindSpore, allowing users to experience the efficient development experience brought by the synergistic optimization of hardware and software. Meanwhile, developers are welcome to customize MindSpore and CANN running environment. + +## Learning Resource + +| Stage | Description | Link | +| :----- |:----- |:----- | +| Pre-learning | Before developing based on the MindSpore + OrangePi AIpro development board, it is necessary to understand and master the content | [MindSpore](https://www.mindspore.cn/en)
[Linux](https://www.runoob.com/linux/linux-tutorial.html)
[Jupyter](https://jupyter.org/documentation) | +| Image acquisition | OrangePi AIpro Official Website - Official Mirror | [8T](http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-AIpro.html)
[20T](http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-AIpro(20T).html) | +| Environment Setup | How to build a custom environment based on OrangePi AIpro, including version checks and updates for CANN, MindSpore, kits, etc. (Taking the 8-12 TOPS 16G development board as an example, the operation method for the 20 TOPS development board is the same) | [Environment Setup Guide](https://www.mindspore.cn/docs/en/r2.5.0/orange_pi/environment_setup.html) | +| Online Inference | How to initiate model inference in OrangePi AIpro | [Model Online Inference](https://www.mindspore.cn/docs/en/r2.5.0/orange_pi/model_infer.html) | +| Quick Start | Case study of handwritten digit recognition based on MindSpore, explaining the development considerations in the OrangePi AIpro development board | [Quick Start](https://www.mindspore.cn/docs/en/r2.5.0/orange_pi/dev_start.html) | +| Premium courses | MindSpore + Ascend Development Board:Combining Software and Hard to Play DeepSeek Development Practice Course | [Course link](https://www.hiascend.com/developer/courses/detail/1925362775376744449) | +| Case sharing | Ascend Development Board Zone - Case Sharing| [Ascend Development Board Zone](https://www.hiascend.com/developer/devboard) | +| MindSpore + OrangePi Code repository | orange-pi-mindspore code repository | [GitHub link](https://github.com/mindspore-courses/orange-pi-mindspore) | diff --git a/docs/mindspore/source_en/orange_pi/index.rst b/docs/mindspore/source_en/orange_pi/index.rst deleted file mode 100644 index f9032f0dfabf0fbd406c35ec521a429a32120487..0000000000000000000000000000000000000000 --- a/docs/mindspore/source_en/orange_pi/index.rst +++ /dev/null @@ -1,20 +0,0 @@ -Orange Pi Development -=============================== - -`OrangePi AIpro `_ adopts the route of Ascend AI technology, specifically 4-core 64-bit processor and AI processor, integrated graph processor. - -At present, the system image of OrangePi AIpro development board has been realized with the Ascend MindSpore AI framework pre-installed, and continues to evolve in subsequent version iterations, and currently supports all network models covered by the tutorials on the MindSpore official website. The OrangePi AIpro development board provides developers with the openEuler version and the ubuntu version, both of which are preconfigured with Ascend MindSpore, allowing users to experience the efficient development experience brought by the synergistic optimization of hardware and software. Meanwhile, developers are welcome to customize MindSpore and CANN running environment. - -The next tutorials will demonstrate how to build a customized environment based on OrangePi AIpro, how to start Jupyter Lab in OrangePi AIpro, and use handwritten digit recognition as an example of the operations that need to be done to perform online inference based on MindSpore OrangePi AIpro. - -The following operations are based on the OrangePi AIpro 8-12TOPS 16G development board, and the 20TOPS development board operates in the same way. - -For more examples of OrangePi AIpro development boards based on MindSpore, please refer to: `GitHub link `_ - -.. toctree:: - :glob: - :maxdepth: 1 - - environment_setup - model_infer - dev_start diff --git a/docs/mindspore/source_en/orange_pi/model_infer.md b/docs/mindspore/source_en/orange_pi/model_infer.md index 36db9dcaed3ebf7e926d565efe4c958f62421141..3e7b9cfa4d5a1e6cf62f00f43def5de0375cf3fd 100644 --- a/docs/mindspore/source_en/orange_pi/model_infer.md +++ b/docs/mindspore/source_en/orange_pi/model_infer.md @@ -68,4 +68,4 @@ Step 3 In this directory there are all the resources to run the sample, where mi 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.5.0/docs/mindspore/source_zh_cn/orange_pi/images/model_infer6.png) \ No newline at end of file +![model-infer6](https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.5.0/docs/mindspore/source_zh_cn/orange_pi/images/model_infer6.png) diff --git a/docs/mindspore/source_zh_cn/orange_pi/dev_start.ipynb b/docs/mindspore/source_zh_cn/orange_pi/dev_start.ipynb index 1044bfec43a07dce18deb9ad27ce587f4d8f1aa2..85ce4db4e19791d564f0a1aea38f9ad79556ea8e 100644 --- a/docs/mindspore/source_zh_cn/orange_pi/dev_start.ipynb +++ b/docs/mindspore/source_zh_cn/orange_pi/dev_start.ipynb @@ -29,11 +29,11 @@ "\n", "### CANN升级\n", "\n", - "参考[CANN升级](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/environment_setup.html#2-cann%E5%8D%87%E7%BA%A7)章节。\n", + "参考[CANN升级](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/environment_setup.html#3-cann%E5%8D%87%E7%BA%A7)章节。\n", "\n", "### MindSpore升级\n", "\n", - "参考[MindSpore升级](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/environment_setup.html#3-mindspore%E5%8D%87%E7%BA%A7)章节。" + "参考[MindSpore升级](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/environment_setup.html#4-mindspore%E5%8D%87%E7%BA%A7)章节。" ] }, { @@ -75,7 +75,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { "tags": [] }, @@ -97,7 +97,6 @@ } ], "source": [ - "# install download\n", "\n", "!pip install download" ] @@ -617,7 +616,7 @@ "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/cui0523/orange-pi-mindspore/tree/master/Online/inference/01-quick%20start),更多案例可参考该仓库。\n", "\n", "本案例运行所需环境:\n", "\n", diff --git a/docs/mindspore/source_zh_cn/orange_pi/environment_setup.md b/docs/mindspore/source_zh_cn/orange_pi/environment_setup.md index 865e4b6785e450cd09355ea6b26b4eb6e3a78548..c9caeba15c3a6333fe8f2d59911f7a4c1bc0c84c 100644 --- a/docs/mindspore/source_zh_cn/orange_pi/environment_setup.md +++ b/docs/mindspore/source_zh_cn/orange_pi/environment_setup.md @@ -108,13 +108,59 @@ ![environment-setup-1-13](./images/environment_setup_1-13.png) -## 2. CANN升级 +## 2. 启动开发板和网络连接 -### 2.1 Toolkit升级 +### 2.1 启动开发板 -步骤1 打开终端,切换root用户。 +将烧录好镜像的TF卡插入开发板对应的插槽中,参考[香橙派官方资料](http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-AIpro.html)中的《用户手册》,具体可参考“2.8 启动开发板的步骤”。 -使用`CTRL+ALT+T`快捷键或点击页面下方带有`$_`的图标打开终端。 +![environment-setup-1-20](./images/environment_setup_1-20.png) + +### 2.2 网络连接 + +为方便后续环境升级下载软件包和运行代码,开发板需要完成网络连接。具体可参考《用户手册》“3.5 网络连接测试”。 + +![environment-setup-1-21](./images/environment_setup_1-21.png) + +### 2.3 SSH远程登录开发板(可选) + +如果需要通过SSH远程方式登录开发板,具体可参考《用户手册》“3.6 SSH远程登录开发板”。 + +![environment-setup-1-22](./images/environment_setup_1-22.png) + +### 2.4 设置Swap内存(可选) + +虽然开发板有 8GB 或 16GB 的大内存,但有些应用需要的内存大于 8GB 或 16GB,此时我们可以通过 Swap 内存来扩展系统能使用的最大内存容量。具体可参考《用户手册》“3.20 设置Swap内存的方法”。 + +![environment-setup-1-23](./images/environment_setup_1-23.png) + +## 3. CANN升级 + +### 3.1 CANN版本查询 + +步骤1 使用`CTRL+ALT+T`快捷键或点击页面下方带有`$_`的图标打开终端,保持HwHiAiUser用户登录状态。 + +![environment-setup-1-14](./images/environment_setup_1-14.png) + +步骤2 进入软件包安装信息文件目录。 + +```bash +(base) HwHiAiUser@orangepiaipro:~$ cd /usr/local/Ascend/ascend-toolkit/latest/aarch64-linux +``` + +步骤3 执行以下命令获取版本信息。 + +```bash +(base) HwHiAiUser@orangepiaipro:~$ cat ascend_toolkit_install.info +``` + +### 3.2 CANN升级 + +若当前CANN版本不满足开发需求,可按照如下内容对CANN版本进行升级。 + +#### 3.2.1 Toolkit升级 + +步骤1 使用`CTRL+ALT+T`快捷键或点击页面下方带有`$_`的图标打开终端,并切换root用户。 ![environment-setup-1-14](./images/environment_setup_1-14.png) @@ -130,7 +176,7 @@ ``` -步骤2 删除镜像中已安装CANN包释放磁盘空间,防止安装新的CANN包时报错磁盘空间不足。 +步骤2 删除已安装CANN包释放磁盘空间,防止安装新的CANN包时报错磁盘空间不足。 ```bash @@ -139,7 +185,7 @@ ``` -步骤3 打开昇腾CANN官网访问社区版资源[下载地址](https://www.hiascend.com/developer/download/community/result?module=cann),下载所需版本的toolkit包,该处以8.0.RC2.alpha003版本为例,如下图: +步骤3 打开昇腾CANN官网访问社区版资源[下载地址](https://www.hiascend.com/developer/download/community/result?module=cann),下载所需版本的toolkit包,该处以8.0.0.beta1版本为例,如下图: ![environment-setup-1-15](./images/environment_setup_1-15.png) @@ -155,21 +201,21 @@ (base) root@orangepiaipro: /usr/local/Ascend/ascend-toolkit# cd /home/HwHiAiUser/Downloads ``` -> Orange Pi AI Pro浏览器文件默认下载目录:/home/HwHiAiUser/Downloads,用户在更换保存路径时请同步修改上述命令中的路径。 +> OrangePi AIpro浏览器文件默认下载目录:/home/HwHiAiUser/Downloads,用户在更换保存路径时请同步修改上述命令中的路径。 步骤5 给CANN包添加执行权限。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.0.RC2.alpha003_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.0.0_linux-aarch64.run ``` 步骤6 执行以下命令升级软件。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.0.RC2.alpha003_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.0.0_linux-aarch64.run --install ``` -安装时弹出此提示后输入Y,然后按回车键继续安装。 +安装时弹出此提示后输入Y,然后按回车键继续安装,该过程约需要10-15分钟,请耐心等待。 ![environment-setup-1-16](./images/environment_setup_1-16.png) @@ -182,20 +228,21 @@ xxx install success - xxx表示升级的实际软件包名。 -- 安装升级后的路径(以root用户默认安装升级路径为例):“/usr/local/Ascend/ ascend-toolkit/ +- 安装升级后的路径(以root用户默认安装升级路径为例):/usr/local/Ascend/ascend-toolkit/ + +> 如果输出不正确,需要按照以上步骤重新升级Toolkit。 -步骤7 配置并加载环境变量。 +步骤7 加载环境变量。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads # echo 'source /usr/local/Ascend/ascend-toolkit/set_env.sh' >> ~/.bashrc (base) root@orangepiaipro: /home/HwHiAiUser/Downloads # source ~/.bashrc ``` -### 2.2 Kernels升级 +#### 3.2.2 Kernels升级 -> 二进制算子包Kernels依赖CANN软件包Toolkit,执行升级时,当前环境需已安装配套版本的Toolkit,并使用同一用户安装。 +> 二进制算子包Kernels依赖CANN软件包Toolkit,执行升级时,当前环境需已安装配套版本的Toolkit,并使用root用户安装。 步骤1 打开终端,并切换root用户。 @@ -227,18 +274,18 @@ npu-smi info (base) root@orangepiaipro: /usr/local/Ascend/ascend-toolkit# cd /home/HwHiAiUser/Downloads ``` -> Orange Pi AI Pro浏览器文件默认下载目录:/home/HwHiAiUser/Downloads +> OrangePi AIpro浏览器文件默认下载目录:/home/HwHiAiUser/Downloads 步骤5 给kernels包添加执行权限。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.0.RC2.alpha003_linux.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.0.0_linux-aarch64.run ``` 步骤6 执行以下命令升级软件。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.0.RC2.alpha003_linux.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.0.0_linux-aarch64.run --install ``` 升级完成后,若显示如下信息,则说明软件升级成功: @@ -249,29 +296,47 @@ xxx install success - xxx表示升级的实际软件包名。 -- 安装升级后的路径(以root用户默认安装升级路径为例):“/usr/local/Ascend/ ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/kernel”。 +- 安装升级后的路径(以root用户默认安装升级路径为例):/usr/local/Ascend/ascend-toolkit/latest/opp/built-in/op_impl/ai_core/tbe/kernel。 -## 3. MindSpore升级 +> 如果输出不正确,需要按照以上步骤重新升级Kernels。 + +## 4. MindSpore升级 + +### 4.1 MindSpore版本查询 + +步骤1 使用CTRL+ALT+T快捷键或点击页面下方带有$_的图标打开终端,保持HwHiAiUser用户登录状态。 + +![environment-setup-1-14](./images/environment_setup_1-14.png) -### 3.1 安装官网正式版(以MindSpore2.4.10为例) +步骤2 执行如下命令,查询当前MindSpore版本。 + +```bash +(base) HwHiAiUser@orangepiaipro:~$ pip show mindspore +``` + +若当前MindSpore版本不满足开发需求,可按照如下内容对MindSpore版本进行升级。 + +### 4.2 升级MindSpore(以MindSpore2.5.0为例) + +#### 4.2.1 升级MindSpore 请注意,以下两种MindSpore的安装方式均需在HwHiAiUser用户下执行安装,任意选择其中一种方式安装即可。 -方式一:使用CTRL+ALT+T快捷键或点击页面下方带有$_的图标打开终端,在终端直接运行pip install命令。 +方式一:使用CTRL+ALT+T快捷键或点击页面下方带有$_的图标打开终端,保持HwHiAiUser用户登录状态,在终端直接运行pip install命令。 ```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.4.10 +(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.5.0 ``` -方式二:使用CTRL+ALT+T快捷键或点击页面下方带有$_的图标打开终端,参考[昇思MindSpore官网安装教程](https://www.mindspore.cn/install),在终端执行以下命令进行安装。 +方式二:使用CTRL+ALT+T快捷键或点击页面下方带有$_的图标打开终端,保持HwHiAiUser用户登录状态,参考[昇思MindSpore官网安装教程](https://www.mindspore.cn/install),在终端执行以下命令进行安装。 ```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.4.10/MindSpore/unified/aarch64/mindspore-2.4.10-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple +(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.5.0/MindSpore/unified/aarch64/mindspore-2.5.0-cp39-cp39-linux_aarch64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple # 注意确认操作系统和编程语言,香橙派开发板默认环境下是linux-aarch64和python3.9 ``` -### 3.2 验证是否成功安装 +#### 4.2.2 验证是否成功安装 执行以下命令: @@ -282,6 +347,12 @@ xxx install success 如果输出如下,说明MindSpore安装成功了。 ```bash -MindSpore version: 2.4.10 +MindSpore version: 2.5.0 The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! -``` \ No newline at end of file +``` + +> 如果输出不正确,需要按照4.2.1 MindSpore升级方式重新升级。 + +## 下一步建议 + +此时香橙派开发板环境搭建已经完成,可以在开发板上体验基于昇思MindSpore开发的[模型在线推理](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/model_infer.html)。 diff --git a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-15.png b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-15.png index 56df76ca6d0dfa17ce239c2868674697c0c1db34..78866fd792267238f84697adc13e66782bf40387 100644 Binary files a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-15.png and b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-15.png differ diff --git a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-18.png b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-18.png index eab172f197ab3e8955ec29d12226463a8cbeedb9..15b9ebfa767cf3f5fb85502dd1aff7d9a67d5fc3 100644 Binary files a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-18.png and b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-18.png differ diff --git a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-19.png b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-19.png deleted file mode 100644 index a56fa22e1ac8d5c13e562d3b784f5c070b61f0ae..0000000000000000000000000000000000000000 Binary files a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-19.png and /dev/null differ diff --git a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-20.png b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-20.png new file mode 100644 index 0000000000000000000000000000000000000000..661562a27d032a879c3b24150eb71d519cc9e166 Binary files /dev/null and b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-20.png differ diff --git a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-21.png b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-21.png new file mode 100644 index 0000000000000000000000000000000000000000..0e8a6b4ae83e26d365546884ecf35b9b77eb1ba3 Binary files /dev/null and b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-21.png differ diff --git a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-22.png b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-22.png new file mode 100644 index 0000000000000000000000000000000000000000..01e10a47dadc43d57a53e859d9fd9b7a3588e3af Binary files /dev/null and b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-22.png differ diff --git a/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-23.png b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-23.png new file mode 100644 index 0000000000000000000000000000000000000000..37125f99eadf271d546f0c5ed84c8b41b27c1982 Binary files /dev/null and b/docs/mindspore/source_zh_cn/orange_pi/images/environment_setup_1-23.png differ diff --git a/docs/mindspore/source_zh_cn/orange_pi/images/model_infer7.png b/docs/mindspore/source_zh_cn/orange_pi/images/model_infer7.png new file mode 100644 index 0000000000000000000000000000000000000000..c6dd621e5d9056015431802f0a1c814879e8e4e2 Binary files /dev/null and b/docs/mindspore/source_zh_cn/orange_pi/images/model_infer7.png differ diff --git a/docs/mindspore/source_zh_cn/orange_pi/index.md b/docs/mindspore/source_zh_cn/orange_pi/index.md new file mode 100644 index 0000000000000000000000000000000000000000..7c29d19e83c78b1e27d747ce22b2da2fe1864995 --- /dev/null +++ b/docs/mindspore/source_zh_cn/orange_pi/index.md @@ -0,0 +1,18 @@ +# 香橙派开发 + +[OrangePi AIpro(香橙派 AIpro)](http://www.orangepi.cn/index.html)采用昇腾AI技术路线,具体为4核64位处理器和AI处理器,集成图形处理器。 + +目前已实现OrangePi AIpro开发板的系统镜像预装昇思MindSpore AI框架,并在后续版本迭代中持续演进,同时已完整支持昇思MindSpore官网教程中的所有网络模型。OrangePi AIpro开发板向开发者提供的官方系统镜像有openEuler版本和Ubuntu版本,两个镜像版本均已预置昇思MindSpore,便于用户体验软硬协同优化后带来的高效开发体验。同时,欢迎开发者自定义配置昇思MindSpore和CANN运行环境。 + +## 学习资源 + +| 阶段 | 描述 | 链接 | +| :----- |:----- |:----- | +| 前置学习 | 基于昇思+香橙派开发板进行开发前,需要了解掌握的内容 | [昇思MindSpore](https://www.mindspore.cn/)
[Linux](https://www.runoob.com/linux/linux-tutorial.html)
[Jupyter](https://jupyter.org/documentation) | +| 镜像获取 | 香橙派官网-官方镜像 | [8T](http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-AIpro.html)
[20T](http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-AIpro(20T).html) | +| 环境搭建 | 如何基于OrangePi AIpro进行自定义环境搭建,包括CANN、MindSpore、套件等版本检查与更新(以8-12 TOPS 16G开发板为例,20 TOPS开发板操作方式相同) | [环境搭建指南](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/environment_setup.html) | +| 在线推理 | 如何在香橙派启动模型推理 | [模型在线推理](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/model_infer.html) | +| 开发入门 | 基于MindSpore的手写数字识别案例,说明香橙派开发板中的开发注意事项 | [开发入门](https://www.mindspore.cn/docs/zh-CN/r2.5.0/orange_pi/dev_start.html) | +| 精品课程 | 《昇思+昇腾开发板:
软硬结合玩转DeepSeek开发实战》课程 | [课程链接](https://www.hiascend.com/developer/courses/detail/1925362775376744449) | +| 案例分享 | 昇腾开发板专区-案例分享 | [昇腾开发板专区](https://www.hiascend.com/developer/devboard) | +| 昇思+香橙派案例代码仓 | orange-pi-mindspore 代码仓 | [GitHub仓链接](https://github.com/mindspore-courses/orange-pi-mindspore) | diff --git a/docs/mindspore/source_zh_cn/orange_pi/index.rst b/docs/mindspore/source_zh_cn/orange_pi/index.rst deleted file mode 100644 index 90e6cc3e22c4294cb9ad07ce866fac8f6d61928c..0000000000000000000000000000000000000000 --- a/docs/mindspore/source_zh_cn/orange_pi/index.rst +++ /dev/null @@ -1,20 +0,0 @@ -香橙派开发 -=============== - -`OrangePi AIpro(香橙派 AIpro) `_ 采用昇腾AI技术路线,具体为4核64位处理器和AI处理器,集成图形处理器。 - -目前已实现OrangePi AIpro开发板的系统镜像预置昇思MindSpore AI框架,并在后续版本迭代中持续演进,当前已支持MindSpore官网教程涵盖的全部网络模型。OrangePi AIpro开发板向开发者提供的官方系统镜像有openEuler版本与ubuntu版本,两个镜像版本均已预置昇思MindSpore,便于用户体验软硬协同优化后带来的高效开发体验。同时,欢迎开发者自定义配置MindSpore和CANN运行环境。 - -接下来的教程将演示如何基于OrangePi AIpro进行自定义环境搭建,如何在OrangePi AIpro启动Jupyter Lab,并以手写数字识别为例,介绍OrangePi AIpro上基于MindSpore进行在线推理需要完成的操作。 - -以下操作基于OrangePi AIpro 8-12TOPS 16G开发板,20TOPS开发板操作方式相同。 - -更多基于昇思MindSpore的香橙派开发板案例详见:`GitHub链接 `_ - -.. toctree:: - :glob: - :maxdepth: 1 - - environment_setup - model_infer - dev_start \ No newline at end of file