Step 2: Installing the AI Model Package - 3.5 English

Vitis AI Library User Guide (UG1354)

Document ID
Release Date
3.5 English

The Vitis AI runtime packages and the Vitis AI Library samples and models are compiled into the pre-built Vitis AI board images. Therefore, you do not have to install the Vitis AI runtime packages and the model package when the target is using a Vitis AI pre-built image. However, you can still install the model on a custom target or on the official image by following these steps:

  1. For each model, there is a yaml file that describes all the details about the model. The yaml file contains download links for the various AMD target boards. Choose your model and the desired platform and download it.
  2. Copy the downloaded file to the target using scp with the following command.
    $ scp <model>.tar.gz root@IP_OF_BOARD:~/

    If the target board is connected to the Internet, you can also use the wget command to download the model directly to the board.

  3. Log in to the target board (using ssh or serial port) and install the model package.
  4. If the /usr/share/vitis_ai_library/model folder does not exist on the target, create it first.
    # mkdir -p /usr/share/vitis_ai_library/models
  5. Install the model on the target board.
    # tar -xzvf <model>.tar.gz -C /usr/share/vitis_ai_library/models

    By default, the models are located in the /usr/share/vitis_ai_library/models directory on the target.