Docker Images Are Hosted on Docker Hub HERE
The GPU docker has been tested with GPU machines with Docker 19.03.1, NVIDIA driver 410.xx (to work with CUDA 10.0) and nvidia-docker 2.2.2.
There is a corresponding relationship between Vitis AI and docker image version, usually you need to find the docker image version corresponding to Vitis AI to use. Among them, the easiest way is to directly use the pre-built docker image on Docker Hub. Just need to execute the following command. For the latest version of Vitis AI, <x.y.z> can simply be replaced with latest.
./docker_run.sh xilinx/vitis-ai-cpu:<x.y.z>
The version correspondence between Vitis AI and docker image is shown in the following table.
Vitis AI Version | Docker image tag |
---|---|
Vitis AI v2.0.0 | ./docker_run.sh xilinx/vitis-ai-cpu:2.0.0.1103 |
Vitis AI v1.4.1 | ./docker_run.sh xilinx/vitis-ai-cpu:1.4.1.978 |
Vitis AI v1.4 | ./docker_run.sh xilinx/vitis-ai-cpu:1.4.916 |
Vitis AI v1.3 | ./docker_run.sh xilinx/vitis-ai-cpu:1.3.411 |
Vitis AI v1.3.1 | |
Vitis AI v1.3.2 | |
Vitis AI v1.2 | ./docker_run.sh xilinx/vitis-ai-cpu:1.2.82 |
Vitis AI v1.2.1 | |
Vitis AI v1.1 | ./docker_run.sh xilinx/vitis-ai-cpu:1.1.56 |
Vitis AI v1.1-ultra96v2 | |
Vitis AI v1.0 | docker pull xilinx/vitis-ai:tools-1.0.0-cpu |
docker pull xilinx/vitis-ai:runtime-1.0.0-cpu |
Simply, you only need to start the CPU docker image with the following command. If the specified docker image does not exist, the command will automatically download it from Docker Hub.
./docker_run.sh xilinx/vitis-ai-cpu:latest
If you don't want to download the image from Docker Hub, but build it from Docker file. Then you need to execute the command in the following way to build the docker image.
cd Vitis-AI/docker
./docker_build_cpu.sh
cd ..
Then you can use the same command as following to load and run the built docker image.
./docker_run.sh xilinx/vitis-ai-cpu:latest
For GPU docker image, you must build it from the docker file, and there is no pre-built image. The build command is as follows.
cd Vitis-AI/docker
./docker_build_gpu.sh
cd ..
Then you can use the command as following to load and run the built docker image.
./docker_run.sh xilinx/vitis-ai-gpu:latest