The Vitis AI Runtime packages, Vitis-AI-Library samples and models have been built into the board image. Therefore, you do not have to install Vitis AI Runtime packages and model package on the board separately. However, you can still install the Vitis AI Runtime on their own image or on the official image by following these steps.
- Download the vitis-ai-runtime-1.2.x.tar.gz from here. Untar it and copy the
following files to the board using
scp.
$tar -xzvf vitis-ai-runtime-1.2.x.tar.gz $scp -r vitis-ai-runtime-1.2.x/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.2.0-r<x>.aarch64.rpm | cpio -idmv
- Log in to the board using ssh.
You can also use the serial port to login.
- Run the
zynqmp_dpu_optimize.sh
script.#cd ~/dpu_sw_optimize/zynqmp/ #./zynqmp_dpu_optimize.sh
- Install the Vitis
AI Library. Execute the following command.
#cd ~/centos #rpm -ivh --force libunilog-1.2.0-r<x>.aarch64.rpm #rpm -ivh --force libxir-1.2.0-r<x>.aarch64.rpm #rpm -ivh --force libtarget-factory-1.2.0-r<x>.aarch64.rpm #rpm -ivh --force libvart-1.2.0-r<x>.aarch64.rpm #rpm -ivh --force libvitis_ai_library-1.2.0-r<x>.aarch64.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