Quick Start Guide for VVAS - Quick Start Guide for VVAS - 6.2 English - XD056

Vitis Video Analytics SDK (VVAS) 6.2 User Guide (XD056)

Document_ID
XD056
Release_Date
2026-06-12
Version
6.2 English

This quick start guide is designed to assist you in using the pre-built VVAS components provided in this release. While post-processing requirements differ across models, this solution features the resnet50_int8 and yolox_m_int8 models. The system is designed to function seamlessly with the VEK385 Rev A/B board. You have the flexibility to develop and integrate your own software-based or hardware accelerated post-processing into the solution to meet specific needs.

The Neural Processing Unit (NPU) is specifically crafted for AI inference, aimed at accelerating the deployment of neural networks. It primarily uses AMD’s AI Engine for mathematical operations, while the complete system solution also incorporates programmable logic hardware to accelerate pre-processing.

Prerequisites and System Image Flashing Steps

This VVAS release is built upon and tested with the VEK385 V6.2 reference design release. For prerequisites, release package download, board flashing, and model compilation on Versal AI Edge Series Gen2, follow the Versal AI Edge Gen2 Vitis AI documentation: use Quick Start (board and first inference), Software setup (host packages and sysroot), OSPI and SD card board setup, and Model compilation as needed for your workflow.

Note

VVAS is pre-installed in the Yocto rootfs. No separate download or installation is required.

VVAS can also be compiled from source for users who need to customize it. The source code is available on GitHub (branch: release/6.2). See Compiling VVAS from the Source Code for instructions.

Running the Solution from the Pre-Built VVAS

gst-inspect-1.0 vvas_xinfer
gst-inspect-1.0 vvas_xmetaconvert
gst-inspect-1.0 vvas_xoverlay

Note

  • If the plugins are installed correctly, you will see detailed information about each plugin. If you see an error message like “No such element or plugin,” the plugins are not installed correctly. In that case, check the installation.

  • The following pre-installed models are available in the rootfs:

    • /etc/vai/models/resnet50_int8

    • /etc/vai/models/yolox_m_int8

Quick Start Examples

Start running inference right away — the following commands use pre-installed test images and require no additional setup.

Image Classification using ResNet50 INT8 model (with ONNX Runtime, internal preprocessing)

gst-launch-1.0 \
  filesrc location=/etc/vai/models/resnet50_int8/data/classification.jpg ! queue \
  ! jpegdec \
  ! videoscale \
  ! video/x-raw,width=640,height=640 \
  ! videoconvert \
  ! video/x-raw,format=NV12 ! queue \
  ! vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_onnxrt_intppe.json ! queue \
  ! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
  ! vvas_xoverlay ! queue \
  ! filesink location=classification_out_resnet50_int8.nv12 -v

Expected output (640×640 NV12 frame with classification label overlaid):

ResNet50 INT8 classification output with label overlay

Object Detection using YOLOXM INT8 model (with VART zero-copy, internal preprocessing)

gst-launch-1.0 \
  filesrc location=/etc/vai/models/yolox_m_int8/data/detections.jpg ! queue \
  ! jpegdec \
  ! videoscale \
  ! video/x-raw,width=640,height=640 \
  ! videoconvert \
  ! video/x-raw,format=NV12 ! queue \
  ! vvas_xinfer config-file=/etc/vvas/configs/infer/yoloxm_int8_vart_zerocopy.json ! queue \
  ! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
  ! vvas_xoverlay ! queue \
  ! filesink location=detection_out_yoloxm_int8.nv12 -v

Fine-tune detection behavior — confidence threshold, IoU, NMS, and more — via the postprocess-config block in the vvas_xinfer JSON. See Sample Postprocess Library Configuration Reference for the full parameter reference.

Extended Examples

The following example pipelines demonstrate inference using the resnet50_int8 and yolox_m_int8 models, which are pre-installed in the rootfs. You can integrate your own models by providing the appropriate vvas_xinfer configuration.

Single-Instance Inference

ResNet50 INT8 with ONNX Runtime (internal pre-processing)

Note

  • Ensure model-path is set to point to your available model before running.

  • Replace INPUT and INPUT_WIDTH/INPUT_HEIGHT in all subsequent commands.

  • Make sure label-file-path is pointing to the appropriate label file for the model in test.

gst-launch-1.0 filesrc location=<INPUT>.nv12 \
! rawvideoparse format=nv12 width=<INPUT_WIDTH> height=<INPUT_HEIGHT> ! queue \
! vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_onnxrt_intppe.json ! queue \
! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
! vvas_xoverlay ! queue ! filesink location=out_resnet50_int8_onnx.nv12 -v

ResNet50 INT8 with VART zero-copy (internal pre-processing)

Note

  • Ensure model-path is set to point to your available model before running.

  • Replace INPUT and INPUT_WIDTH/INPUT_HEIGHT in all subsequent commands.

  • Make sure label-file-path is pointing to the appropriate label file for the model in test.

gst-launch-1.0 filesrc location=<INPUT>.nv12 \
! rawvideoparse format=nv12 width=<INPUT_WIDTH> height=<INPUT_HEIGHT> ! queue \
! vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_vart_zerocopy_intppe.json ! queue \
! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
! vvas_xoverlay ! queue ! filesink location=out_resnet50_int8_vart.nv12 -v

ResNet50 INT8 with VART zero-copy (external pre-processing)

Note

  • Ensure model-path is set to point to your available model before running.

  • Replace INPUT and INPUT_WIDTH/INPUT_HEIGHT in all subsequent commands.

  • label-file-path the label file will be available from VVAS source, make sure to point this to the correct location.

  • With external pre-processing for vvas_xinfer, we need to additionally use vvas_metaaffixer to pass on the inference result further down the pipeline. Refer to vvas_xmetaaffixer for more details.

gst-launch-1.0 filesrc location=<INPUT>.bgr \
! rawvideoparse format=bgr width=<INPUT_WIDTH> height=<INPUT_HEIGHT> \
! tee name=t ! queue \
! vvas_xabrscaler xclbin-location=/run/media/mmcblk0p1/x_plus_ml.xclbin alpha-r=123.675 alpha-g=116.280 alpha-b=103.530 beta-r=0.017124 beta-g=0.017507 beta-b=0.017429 \
! vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_vart_zerocopy_extppe.json \
! ma1.sink_master vvas_xmetaaffixer name=ma1 ma1.src_master ! \
fakesink -v \
t. ! queue \
! ma1.sink_slave_0 ma1.src_slave_0 ! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
! vvas_xoverlay ! queue \
! filesink location=out_resnet50_int8_vart.bgr

Multi-Instance Inference

ResNet50 INT8 + YOLOX-M INT8 (external pre-processing via vvas_xabrscaler)

Note

  • Ensure model-path is set to point to your available model before running.

gst-launch-1.0 \
filesrc location=<INPUT>.bgr ! \
rawvideoparse format=bgr width=<INPUT_WIDTH> height=<INPUT_HEIGHT> ! \
tee name=t ! queue ! \
    vvas_xabrscaler xclbin-location=/run/media/mmcblk0p1/x_plus_ml.xclbin alpha-r=123.675 alpha-g=116.280 alpha-b=103.530 beta-r=0.017124 beta-g=0.017507 beta-b=0.017429 ! \
    vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_onnxrt_extppe.json ! \
    ma1.sink_master vvas_xmetaaffixer name=ma1 ma1.src_master ! \
    fakesink -v \
t. ! queue ! \
    ma1.sink_slave_0 ma1.src_slave_0 ! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json ! \
    vvas_xoverlay ! queue ! \
    filesink location=out_1_resnet50_int8.bgr \
t. ! queue ! \
    vvas_xinfer config-file=/etc/vvas/configs/infer/yoloxm_int8_onnxrt_intppe.json ! \
    ma2.sink_master vvas_xmetaaffixer name=ma2 ma2.src_master ! \
    fakesink -v \
t. ! queue ! \
    ma2.sink_slave_0 ma2.src_slave_0 ! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json ! \
    vvas_xoverlay ! queue ! \
    filesink location=out_2_yolox_int8.bgr

Four concurrent ResNet50 INT8 instances

Note

  • Ensure model-path is set to point to your available model before running.

gst-launch-1.0 filesrc location=<INPUT>.nv12 \
! rawvideoparse format=nv12 width=<INPUT_WIDTH> height=<INPUT_HEIGHT> \
! queue \
! vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_onnxrt_intppe.json \
! queue \
! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
! vvas_xoverlay \
! filesink location=gst_out_1_resnet50_int8.nv12 \
filesrc location=<INPUT>.nv12 \
! rawvideoparse format=nv12 width=<INPUT_WIDTH> height=<INPUT_HEIGHT> \
! queue \
! vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_onnxrt_intppe.json \
! queue \
! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
! vvas_xoverlay \
! filesink location=gst_out_2_resnet50_int8.nv12 \
filesrc location=<INPUT>.nv12 \
! rawvideoparse format=nv12 width=<INPUT_WIDTH> height=<INPUT_HEIGHT> \
! queue \
! vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_onnxrt_intppe.json \
! queue \
! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
! vvas_xoverlay \
! filesink location=gst_out_3_resnet50_int8.nv12 \
filesrc location=<INPUT>.nv12 \
! rawvideoparse format=nv12 width=<INPUT_WIDTH> height=<INPUT_HEIGHT> \
! queue \
! vvas_xinfer config-file=/etc/vvas/configs/infer/resnet50_int8_onnxrt_intppe.json \
! queue \
! vvas_xmetaconvert config-location=/etc/vvas/configs/metaconvert/metaconvert_config.json \
! vvas_xoverlay \
! filesink location=gst_out_4_resnet50_int8.nv12 -v