Detection with tracker example not working with hailo-8l and raspberry pi 5

Hello,

I would like to run the detection with tracker example using the Python API (Hailo-Application-Code-Examples/runtime/python/detection_with_tracker at main · hailo-ai/Hailo-Application-Code-Examples · GitHub).

After modifying the download_resources.sh to download the correct HEF file, I am still getting error about input size buffer.

./detection_with_tracker.py -i input_video.mp4 -o output_video.mp4 -l coco.txt -s 0.5
0%| | 0/349 [00:00<?, ?it/s][HailoRT] [error] CHECK failed - Input buffer size 0 is different than expected 1228800 for input ‘yolov5m_wo_spp_60p/input_layer1’
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_OPERATION(6)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_OPERATION(6)
Exception in thread Thread-1 (run):
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py”, line 3282, in run_async
cpp_job = self._configured_infer_model.run_async(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hailo_platform.pyhailort._pyhailort.HailoRTStatusException: 6

I have found similar posts about this error message ([HailoRT] [error] CHECK failed - Input buffer size 0 is different than expected 602112 for input 'yolov8m/input_layer1'), but nothing has worked.

Considering this example has been taken directly from the repo without any modifications, I expect it to just work. Does anyone have any suggestions here?

Hey @James

The example you’re trying to run was originally designed for x86 systems with Hailo8. We’re working on an RPI-compatible update that will be released by the end of this week.

Temporary Fix

1. Update Requirements File

Replace your current requirements.txt content with:

cython
supervision==0.19.0
loguru
tqdm
requests
opencv-python

2. Install Dependencies

Run this command to install the required packages:

sudo pip install -r requirements --break-system-packages

Important Notes

  • No Python virtual environment is needed when working with Raspberry Pi
  • After completing these steps, you can run the example directly

Please try these steps and let me know if you need any clarification or run into issues.