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-1.4.x.tar.gz from here. Untar it and copy the
following files to the board using
tar -xzvf vitis-ai-runtime-1.4.x.tar.gz scp -r vitis-ai-runtime-1.4.x/2021.1/aarch64/centos root@IP_OF_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 model libraries can be separated independently, while the others are common libraries. The operation command is as follows:
rpm2cpio libvitis_ai_library-1.4.0-r<x>.aarch64.rpm | cpio -idmv
- Log in to the board using ssh.
You can also use the serial port to log in.
- Run the
cd ~/dpu_sw_optimize/zynqmp/ ./zynqmp_dpu_optimize.sh
- Install the Vitis AI
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-1.4.0-r<x>.aarch64.rpm rpm -ivh --force libxir-1.4.0-r<x>.aarch64.rpm rpm -ivh --force libtarget-factory-1.4.0-r<x>.aarch64.rpm rpm -ivh --force libvart-1.4.0-r<x>.aarch64.rpm rpm -ivh --force libvitis_ai_library-1.4.0-r<x>.aarch64.rpmNote: To install all of the rpms that are in a single directory, run
rpm -ivh --force *.rpm.
After the installation is complete, the directories are as follows.
- Library files are stored in /usr/lib.
- The header files are stored in /usr/include/vitis/ai.