VitisAI_1.2 Vitis2020.1 zynq7020环境搭建(二)
参考vitisAI_1.2 的readme进行vitisAI的安装,安装完毕后可用xilinx的量化,编译等工具
下载或克隆vitisAI1.2
git clone from here.
安装docker
- 卸载老版本
sudo apt-get remove docker docker-engine docker.io containerd runc
- Set up the repository
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- Install Docker Engine
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
- List the versions available in your repo:
apt-cache madison docker-ce
- Install a specific version using the version string from the second column, for example, 5:18.09.13-0ubuntu-xenial.
sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
- Verify that Docker Engine is installed correctly by running the hello-world image.
sudo docker run hello-world
拉取xilinx vitis ai 1.2的镜像,目前vitis-ai1.2的最新版本为1.2.82
docker pull xilinx/vitis-ai:1.2.82
进入下载或克隆好的vitis_ai目录运行vitis ai
cd Vitis-AI
./docker_run.sh xilinx/vitis-ai:1.2.82
之后 按提示进入tensorflow的conda环境,就可以用xilinx的量化编译工具了