This page provides instructions for building the Vitis-AI Library (v1.3.2) sample applications from source on a ZCU10x evaluation board or KV260 kit running Certified Ubuntu 20.04 LTS for Xilinx Devices.
...
Before building the sample applications, install the required dependency packages:
|
Get the Source Code
All of the source code is available on the Xilinx GitHub. After you clone the Vitis AI repository, switch to the v1.3.2 tag: . Make sure you’re in your home directory before cloning.
|
Build the Application Code
...
For example, in order to build the facedetect
sample application:
|
Download a Model
The sample applications require a compatible machine learning model in order to run. Refer to the readme
file in the application directory to determine which models are compatible with each sample application. The models are available for download at http://xilinx.com as part of the Xilinx Model Zoo. To find download link for the model you need, use the table below:
Board | Model filename | Notes |
---|---|---|
zcu102/4/6 | <model name>-zcu102_zcu104-r1.3.1.tar.gz | Compatible with the OOB bitstreams provided with the Certified Ubuntu Images |
kv260 | <model name>-DPUCZDX8G_ISA0_B3136_MAX_BG2-1.3.1-r241.tar.gz | Compatible with Accelerated Application firmware from the 2020.2.2 KV260 Release |
Info |
---|
The models for the KV260 are not documented in the Xilinx Model Zoo since they were not available at the time that the original set of v1.3.1 models was released. |
For example, to download the densebox_640_360 model for the zcu102 and extract in the home directory:
|
Run the Sample Application
...
Info |
---|
For help determining which /dev/videoX interface to use for the USB tests, you can use the following command:
|
|
There are three ways to specify the model
...
Info |
---|
For more information about the specific test applications supported for each sample, please refer to the readme in the For more information about running the sample apps, please refer to https://github.com/Xilinx/Vitis-AI/blob/master/tools/Vitis-AI-Library/README.md#running-vitis-ai-library-examples |
Sample Images and Videos
Vitis AI provides a test image archive that can be download to the target and used to run the tests above. To download the sample image package, and extract them to the samples directory in your home directory, use the following commands:
|
To use these images and file lists, change into the subdirectory of the test you want to run, and execute the test app from there. For example, to use the facedetect sample images, you should run your test from the ~/samples/facedetect directory.