在MindStudio团队提供的镜像基础上,张小白基于AI1S云服务器完成了MindStudio的卡通风格迁移任务,
具体内容发布在 https://bbs.huaweicloud.com/blogs/371113,但张小白绝不止步于此,张小白还想在200DK上也试验一下MindStudio 5.0.RC2的威力。
与MindStudio在AI1S上的架构不同,200DK的CPU其实比较弱,而且上面运行的是ubuntu 18.04 server aarch64版,所以基本上不可能在上面运行基于Java11的MindStudio。所以,我们这次使用MindStudio 5.0.RC2的windows版本,结合200DK上的Python,使用远程Python运行的方式完成MMNet人像分割应用的运行。
我们把上述任务拆分成以下几个部分:
(1)创建 ubuntu 18.04 x86虚拟机,并安装部分系统依赖
(2)在 ubuntu 18.04 x86虚拟机 上制作CANN 5.1.RC2社区版的200DK启动盘
(3)启动200DK,安装部分系统依赖
(4)安装Python 3.9.7,安装部分pip依赖
(5)安装CANN Toolkit 5.1.RC2
(6)安装MindX SDK 3.0.RC2
(7)安装MindStudio 5.0.RC2 for windows
(8)准备MMNet项目工程文件,并使用MindStudio Windows版进行相关配置
(9)使用MindStudio Windows版运行调试,跑通MMNet
下面详细描述:
1、创建Ubuntu 18.04 x86操作系统的虚拟机,并安装部分系统依赖
(1)创建ubuntu 18.04 x86虚拟机
创建x86虚拟机的过程可以参见 https://bbs.huaweicloud.com/blogs/345859 《创建Ubuntu 18.04×86 操作系统的虚拟机》的步骤完成,此处不再赘述。
(2)安装net-tools
刚搭建好的虚拟机ifconfig无法使用,需要安装net-tools包:
(3)禁止Ubuntu系统自动更新
如不进行本项设置,没准操作系统会升级到ubuntu 20.04版本:
(4)修改apt源为国内源
修改文件:/etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
sudo apt-get update
(5)安装openssh-server
系统缺省没有安装sshd,安装openssh-server以便可以通过MobaXterm访问: