The Vitis AI Library is a set of high-level libraries and APIs built for efficient AI inference with Deep-Learning Processor Unit (DPU). It is built based on the Vitis AI Runtime with Unified APIs, and it fully supports XRT 2020.2.
The Vitis AI Library provides an easy-to-use and unified interface by encapsulating many efficient and high-quality neural networks. This simplifies the use of deep-learning neural networks, even for users without knowledge of deep-learning or FPGAs. The Vitis AI Library allows users to focus more on the development of their applications, rather than the underlying hardware.
For edge users, click Quick Start For Edge to get started quickly.
For cloud users, click Quick Start For Cloud to get started quickly.
Vitis_AI_Library
├── apps
│ ├── multitask_v3_quad_windows
│ ├── seg_and_pose_detect
│ └── segs_and_roadline_detect
└── samples
├── 3Dsegmentation
├── bcc
├── centerpoint
├── classification
├── covid19segmentation
├── dpu_task
├── facedetect
├── facefeature
├── facelandmark
├── facequality5pt
├── graph_runner
├── hourglass
├── lanedetect
├── medicaldetection
├── medicalsegcell
├── medicalsegmentation
├── multitask
├── multitaskv3
├── openpose
├── platedetect
├── platenum
├── pmg
├── pointpainting
├── pointpillars
├── pointpillars_nuscenes
├── posedetect
├── rcan
├── refinedet
├── reid
├── retinaface
├── RGBDsegmentation
├── segmentation
├── ssd
├── tfssd
├── yolov2
├── yolov3
└── yolov4
For MPSOC
, follow Setting Up the Host to set up the host for edge.
For VCK190
, follow Setting Up the Host to set up the host for edge.
For MPSOC
, follow Setting Up the Target to set up the target.
For VCK190
, follow Setting Up the Target to set up the target.
Follow Running Vitis AI Library Examples to run Vitis AI Library examples.
Note: When you update from VAI1.3 to VAI1.4, refer to the following to modify your compilation options.
- For Petalinux 2021.1, it uses OpenCV4, and for Petalinux 2020.2, it uses OpenCV3. So set the
OPENCV_FLAGS
as needed. You can refer to the following.
result=0 && pkg-config --list-all | grep opencv4 && result=1
if [ $result -eq 1 ]; then
OPENCV_FLAGS=$(pkg-config --cflags --libs-only-L opencv4)
else
OPENCV_FLAGS=$(pkg-config --cflags --libs-only-L opencv)
fi
- Include
-lvitis_ai_library-dpu_task
in the build script.
Follow Setting Up the Host to set up the host for U50/U50lv/U280.
Follow Setting Up the Host to set up the host for VCK5000.
Follow Running Vitis AI Library Examples to run Vitis AI Library examples.
For setting up the host for U200/U250 refer to README.
Demo samples are not supported for U200/U250. To run Vitis AI Library examples for U200/U250 refer to README.
For more information, please refer to vitis-ai-library-user-guide.