diff --git a/tutorials/source_en/orange_pi/dev_start.md b/tutorials/source_en/orange_pi/dev_start.md index 0a1d8283fd906a6be10dbe2d4a50b228265d3685..cb21e73c1047f2365280dab23dcc270df231edc0 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.1.RC1| 2.6.0 | +| 8T 16G | Ubuntu | 8.3.RC1| 2.7.0 | ### Image Burning @@ -351,7 +351,7 @@ for data, label in test_dataset: plt.subplot(2, 3, i + 1) # If the prediction is correct, it will be displayed in blue; if the prediction is incorrect, it will be displayed in red color = 'blue' if predicted[i] == label[i] else 'red' - plt.title('Predicted:{}'.format(predicted[i]), color=color) + plt.title(f'Predicted:{i}'.format(predicted[i]), color=color) plt.imshow(data.asnumpy()[i][0], interpolation="None", cmap="gray") plt.axis('off') plt.show() @@ -368,4 +368,4 @@ The required environment for the operation of this case: | OrangePi AIpro | Image | CANN Toolkit/Kernels | MindSpore | | :----:| :----: | :----:| :----: | -| 8T 16G | Ubuntu | 8.1.RC1| 2.6.0 | +| 8T 16G | Ubuntu | 8.3.RC1| 2.7.0 | diff --git a/tutorials/source_en/orange_pi/environment_setup.md b/tutorials/source_en/orange_pi/environment_setup.md index 07be628524d4daa8c56e9a85f32373b96de9d79f..c392d9a6d270d6b065a5a082878858d4ae34661a 100644 --- a/tutorials/source_en/orange_pi/environment_setup.md +++ b/tutorials/source_en/orange_pi/environment_setup.md @@ -150,7 +150,7 @@ Step 2 Execute the following command to obtain version information. ![environment-setup-1-25](../../source_zh_cn/orange_pi/images/environment_setup_1-25.png) -### 3.2 CANN Upgrading (taking 8.1.RC1 version as an example) +### 3.2 CANN Upgrading (taking 8.3.RC1 version as an example) If the current CANN version does not meet the development requirements, the CANN version can be upgraded according to the following steps. @@ -181,7 +181,7 @@ Step 2 Remove installed CANN packages to free up disk space and prevent installi ``` -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.1.RC1 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.3.RC1 version as an example, as shown below: ![environment-setup-1-15](../../source_zh_cn/orange_pi/images/environment_setup_1-15.png) @@ -202,13 +202,13 @@ 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.1.RC1_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.3.RC1_linux-aarch64.run ``` Step 6 Execute the following command to upgrade the software. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.1.RC1_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.3.RC1_linux-aarch64.run --install ``` 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. @@ -275,13 +275,13 @@ Step 4 Go to the Kernels package download directory. Step 5 Add execution permissions to the kernels package. ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.1.RC1_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.3.RC1_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.1.RC1_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.3.RC1_linux-aarch64.run --install ``` After the upgrade is completed, if the following message is displayed, the software upgrade is successful: @@ -314,25 +314,11 @@ Step 2 Execute the following command to obtain version information. 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.6.0 as an example) +### 4.2 Installing the Official Version of the Website (Taking MindSpore 2.7.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, keep the HwHiAiUser user logged in, and run the pip install command directly on the terminal. - -```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.6.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. - -```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.6.0/MindSpore/unified/aarch64/mindspore-2.6.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 OrangePi AIpro development board is linux-aarch64 and python3.9 -``` +Please refer to the MindSpore official website [installation tutorial](https://www.mindspore.cn/install/en) to install MindSpore 2.7.0. #### 4.2.2 Installation Verification @@ -343,7 +329,7 @@ Method 2: Use the CTRL+ALT+T shortcut key or click on the icon with $_ at the bo If the output is as follows, it indicates that MindSpore has been successfully installed. ```bash -MindSpore version: 2.6.0 +MindSpore version: 2.7.0 The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! ``` diff --git a/tutorials/source_zh_cn/orange_pi/dev_start.ipynb b/tutorials/source_zh_cn/orange_pi/dev_start.ipynb index f4d4e72fb02ca7c0122a528781a59ce4c93c354b..dfff2b0c81c64da34a89bc13dba7f1b809a20357 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.1.RC1| 2.6.0 |\n", + "| 8T 16G | Ubuntu | 8.3.RC1| 2.7.0 |\n", "\n", "### 镜像烧录\n", "\n", @@ -571,7 +571,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -607,7 +607,7 @@ " plt.subplot(2, 3, i + 1)\n", " # 若预测正确,显示为蓝色;若预测错误,显示为红色\n", " color = 'blue' if predicted[i] == label[i] else 'red'\n", - " plt.title('Predicted:{}'.format(predicted[i]), color=color)\n", + " plt.title(f'Predicted:{i}'.format(predicted[i]), color=color)\n", " plt.imshow(data.asnumpy()[i][0], interpolation=\"None\", cmap=\"gray\")\n", " plt.axis('off')\n", " plt.show()\n", @@ -624,7 +624,7 @@ "\n", "| 香橙派AIpro | 镜像 | CANN Toolkit/Kernels | MindSpore |\n", "| :----:| :----: | :----:| :----: |\n", - "| 8T 16G | Ubuntu | 8.1.RC1| 2.6.0 |" + "| 8T 16G | Ubuntu | 8.3.RC1| 2.7.0 |" ] } ], diff --git a/tutorials/source_zh_cn/orange_pi/environment_setup.md b/tutorials/source_zh_cn/orange_pi/environment_setup.md index 5122f2a9f357026215689af074442992d3e0705a..752795772204d8f8b7d3af736074d25ff6919c6a 100644 --- a/tutorials/source_zh_cn/orange_pi/environment_setup.md +++ b/tutorials/source_zh_cn/orange_pi/environment_setup.md @@ -150,7 +150,7 @@ ![environment-setup-1-25](./images/environment_setup_1-25.png) -### 3.2 CANN升级(以CANN 8.1.RC1为例) +### 3.2 CANN升级(以CANN 8.3.RC1为例) 若当前CANN版本不满足开发需求,可按照如下内容对CANN版本进行升级。 @@ -181,7 +181,7 @@ ``` -步骤3 打开昇腾CANN官网访问社区版资源[下载地址](https://www.hiascend.com/developer/download/community/result?module=cann),下载所需版本的toolkit包,该处以8.1.RC1版本为例,如下图: +步骤3 打开昇腾CANN官网访问社区版资源[下载地址](https://www.hiascend.com/developer/download/community/result?module=cann),下载所需版本的toolkit包,该处以8.3.RC1版本为例,如下图: ![environment-setup-1-15](./images/environment_setup_1-15.png) @@ -202,13 +202,13 @@ 步骤5 给CANN包添加执行权限。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.1.RC1_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-toolkit_8.3.RC1_linux-aarch64.run ``` 步骤6 执行以下命令升级软件。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.1.RC1_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-toolkit_8.3.RC1_linux-aarch64.run --install ``` 安装时弹出此提示后输入Y,然后按回车键继续安装。该过程约需要10-15分钟,请耐心等待。 @@ -275,13 +275,13 @@ npu-smi info 步骤5 给kernels包添加执行权限。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.1.RC1_linux-aarch64.run +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads# chmod +x ./Ascend-cann-kernels-310b_8.3.RC1_linux-aarch64.run ``` 步骤6 执行以下命令升级软件。 ```bash -(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.1.RC1_linux-aarch64.run --install +(base) root@orangepiaipro: /home/HwHiAiUser/Downloads#./Ascend-cann-kernels-310b_8.3.RC1_linux-aarch64.run --install ``` 升级完成后,若显示如下信息,则说明软件升级成功: @@ -314,25 +314,11 @@ xxx install success 若当前MindSpore版本不满足开发需求,可按照如下内容对MindSpore版本进行升级。 -### 4.2 升级MindSpore(以MindSpore 2.6.0为例) +### 4.2 升级MindSpore(以MindSpore 2.7.0为例) #### 4.2.1 升级MindSpore -请注意,以下两种MindSpore的安装方式均需在HwHiAiUser用户下执行安装,任意选择其中一种方式安装即可。 - -方式一:使用CTRL+ALT+T快捷键或点击页面下方带有$_的图标打开终端,保持HwHiAiUser用户登录状态,在终端直接运行pip install命令。 - -```bash -(base) HwHiAiUser@orangepiaipro:~$ pip install mindspore==2.6.0 -``` - -方式二:使用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.6.0/MindSpore/unified/aarch64/mindspore-2.6.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 -``` +请参考MindSpore官网[安装教程](https://www.mindspore.cn/install)安装MindSpore2.7.0。 #### 4.2.2 验证是否成功安装 @@ -345,7 +331,7 @@ xxx install success 如果输出如下,说明MindSpore安装成功了。 ```bash -MindSpore version: 2.6.0 +MindSpore version: 2.7.0 The result of multiplication calculation is correct, MindSpore has been installed on platform [Ascend] successfully! ``` diff --git a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-15.png b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-15.png index dd7d0614fb5f3f98660e6af8abcbe7720c88dc60..8429ea3018646e7c0f2e780ba3e5c60e7bcef15d 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-15.png and b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-15.png differ diff --git a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-18.png b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-18.png index 20b73f76dc71abe0f8c696913f40bb61ab3cf545..8ce7c79af85c013c400b284c8f1b1f0caae4823c 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-18.png and b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-18.png differ diff --git a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-24.png b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-24.png index eff58787fe79efe41dbfd02858d1fd909b2290e9..0d29be486a238b4945158463ce15e0cb5fe4bc7d 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-24.png and b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-24.png differ diff --git a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-25.png b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-25.png index ad6fa56b02052574edb890d297a456f75b3b161c..f24c21e5a806e2ece668502c6277157bcf0f3134 100644 Binary files a/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-25.png and b/tutorials/source_zh_cn/orange_pi/images/environment_setup_1-25.png differ