Hi everyone,
I’m working on a GStreamer pipeline using the hailonet element for real-time inference on an RTSP stream with a Hailo AI accelerator. My pipeline is configured with a batch-size=20 in the hailonet element, but I receive a warning because the valid range for batch-size is 0-16, as shown in the gst-inspect-1.0 hailonet output (property: batch-size, type: Unsigned Integer, range: 0-16, default: 0).
The pipeline processes video frames at 4 FPS, using a circular buffer of 20 frames to compute inference scores for a custom model I developed. It includes components like rtspsrc, videorate (to enforce 4 FPS), and a custom callback for processing inference results. The warning occurs during pipeline creation with Gst.parse_launch.
My question is: What does the hailonet element do when an invalid batch-size (e.g., 20) is provided? Does it:
-
Use the maximum allowed value (16)?
-
Revert to the default value (0, which might imply automatic batch sizing)?
-
Discard frames?
-
Handle it in another way?
Any insights into how hailonet manages frame processing in this scenario would be greatly appreciated, especially regarding potential frame dropping or performance impacts. Has anyone encountered this issue or found documentation explaining this behavior?
Additional Context:
-
GStreamer version: 1.0
-
Plugin: libgsthailo.so (Hailo GStreamer plugin)
-
Hardware: Hailo AI accelerator
-
Model: Custom .hef file developed by me
-
Pipeline includes rtspsrc, videorate, and a custom callback for inference results
Thanks in advance for any help or pointers to relevant documentation!