Demo 1: segs_and_roadline_detect - 3.5 English

Vitis AI Library User Guide (UG1354)

Document ID
UG1354
Release Date
2023-06-29
Version
3.5 English

segs_and_roadline_detect is a demo that includes MultiTask segmentation network processing, vehicle detection, and road line detection.

Target Application

ADAS/AD

AI Model, Performance, and Power

FPN
512x288, 4ch, 20fp
VPGNET
640x480, 1ch, 56fps
20W @ ZU9EG
N/A

Building and Running the Demo

Build the demo in the host and copy the program to the target board.

cd Vitis-AI/examples/vai_library/apps/segs_and_roadline_detect
bash -x build.sh
scp segs_and_roadline_detect_x segs_and_roadline_detect_drm root@IP_OF_BOARD:~/

To use OpenCV display, run the following command:

./segs_and_roadline_detect_x seg_512_288.avi seg_512_288.avi seg_512_288.aviseg_512_288.avi lane_640_480.avi -t 2 -t 2 -t 2 -t 2 -t 3 >/dev/null 2>&1

If you want to use DRM display, connect to the board using SSH and run the following command:

./segs_and_roadline_detect_drm seg_512_288.avi seg_512_288.avi seg_512_288.avi
seg_512_288.avi lane_640_480.avi -t 2 -t 2 -t 2 -t 2 -t 3 >/dev/null 2>&1
Note:
  1. Download the video file package from here.
  2. Due to limitations of the Docker environment, the MultiTask demos cannot run in DRM mode for Data Center targets.
Figure 1. Segmentation and Roadline Detection Demo Picture