Run Demos
This topic describes running Tappas and NpuDetectorLib demos.
System Configuration
Before running demos, apply the following configurations.
| Configuration Item | Details |
|---|---|
| Set CPU performance mode | Run the following command as root to disable CPU frequency
scaling for consistent inference
performance. |
| Enable HailoRT Monitor |
Optional Enable HailoRT monitor to monitor real-time NPU utilization,
active models, and FPS output.
|
| Wayland Display Compatibility |
Applicable to Tappas demos only. The Tappas demos use In each demo's startup script (.sh
file), replace the
video-sink
element:Note: If you skip this configuration,
the demos fail with a display sink error. |
Run Tapps Demos
Tappas provides pre-built GStreamer pipelines for common AI vision tasks. The demos
are located under /home/user/tappas/apps/h8/gstreamer/vf2/.
| Demo Case | Command |
|---|---|
| Instance Segmentation |
|
| Object Detection |
The |
| Network Cascading (Object Detection + Pose Estimation) |
Note: If you encounter a TAPPAS-WORKSPACE
error, set the environment
variable:
where
path_to-tapps is the actual Tappas
source directory path. |
Run NpuDetectorLib Demo
NpuDetectorLib is a lightweight C++ inference library for running HEF models on the Hailo NPU.
-
Download and compile NpuDetectorLib.
$ tar -xvf NpuDetectorLib.tar $ cd NpuDetectorLib $ cmake -H. -Bbuild -DSHOW_LABEL=ON -DBUILD_TESTER=ON $ cmake --build build -
Download the YOLOv8 model.
wget -O models/yolov8s_nms.hef \ https://hailo-model-zoo.s3.eu-west-2.amazonaws.com/ModelZoo/Compiled/v2.13.0/hailo8l/yolov8s.hef -
Run the object detection demo.
./build/tests/TestExecutable -i /dev/video4 -m models/yolov8s_nms.json -a yolov8_nms