The Vitis AI runtime packages and the Vitis AI Library samples and models are built into the board image. You do not have to install Vitis AI runtime packages and model packages on the board separately. However, you can still install the Vitis AI runtime on your own image or on the official image by following these steps:
- Download the vitis-ai-runtime-2.0.x.tar.gz from here. Untar it and copy the
following files to the board using the
scp
command.tar -xzvf vitis-ai-runtime-2.0.x.tar.gz scp -r vitis-ai-runtime-2.0.x/2021.2/aarch64/centos root@IP_OF_BOARD:~/
If your board is connected to the Internet, you can also use the
wget
command to download the package directly to the board.Note: You can take the RPM package as a normal archive, and extract the contents on the host side if you only need some of the libraries. Only the model libraries can be separated into independent libraries. The other libraries are common. The operation command is as follows:rpm2cpio libvitis_ai_library-2.0.0-r<x>.aarch64.rpm | cpio -idmv
- Log in to the board using ssh.
You can also use the serial port to log in.
- For Zynq UltraScale+ MPSoCs, run the
zynqmp_dpu_optimize.sh
script.cd ~/dpu_sw_optimize/zynqmp/ ./zynqmp_dpu_optimize.sh
- Install the Vitis AI Library.
cd ~/centos bash setup.sh
You can also execute the following command to install the library one by one.
cd ~/centos rpm -ivh --force libunilog-2.0.0-r<x>.aarch64.rpm rpm -ivh --force libxir-2.0.0-r<x>.aarch64.rpm rpm -ivh --force libtarget-factory-2.0.0-r<x>.aarch64.rpm rpm -ivh --force libvart-2.0.0-r<x>.aarch64.rpm rpm -ivh --force libvitis_ai_library-2.0.0-r<x>.aarch64.rpm
Note: To install all of the rpms that are in a single directory, runrpm -ivh --force *.rpm
.
After the installation is complete, the directories are as follows:
- The library files are stored in the /usr/lib location.
- The header files are stored in the /usr/include/vitis/ai location.