Help with Error When Running Object Detection with ByteTracker on Raspberry Pi 5

Hello everyone,

I am a newcomer exploring the HAILO AI KIT, and I am trying to run the Object Detection example with ByteTracker and Supervision on Raspberry Pi 5 according to the guide from Hailo’s GitHub project. However, I am encountering some issues during the execution of the code.
When I run the following command:

./detection_with_tracker.py -i input_video.mp4 -o output_video.mp4 -l coco.txt -s 0.5

I receive the following error messages:

[HailoRT] [error] HEF format is not compatible with device. Device arch: HAILO8L, HEF arch: HAILO8
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_HEF(26)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_HEF(26)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_HEF(26)
Exception in thread Thread-1 (run):
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 2835, in configure
    configured_infer_model_cpp_obj = self._infer_model.configure()
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hailo_platform.pyhailort._pyhailort.HailoRTStatusException: 26

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 2834, in configure
    with ExceptionWrapper():
  File "/usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 110, in __exit__
    self._raise_indicative_status_exception(value)
  File "/usr/lib/python3/dist-packages/hailo_platform/pyhailort/pyhailort.py", line 155, in _raise_indicative_status_exception
    raise self.create_exception_from_status(error_code) from libhailort_exception
hailo_platform.pyhailort.pyhailort.HailoRTInvalidHEFException: Invalid HEF. See hailort.log for more information

@hoagxa

The model is compiled for hailo8 and is not supported on hailo8l.

This downloads for hailo8.

Try downloading using the below url…
https://hailo-model-zoo.s3.eu-west-2.amazonaws.com/ModelZoo/Compiled/v2.11.0/hailo8l/yolov5m_wo_spp_60p.hef

1 Like

In case it does not work fo you. You can try downloading from model explorer for hailo8l.

1 Like

Thank you. I did it.