Hailo-Application-Code-Examples-HEF format is not compatible with device. Device arch: HAILO8L, HEF arch: HAILO8

hi i bought the raspi5 ai kit and started working on it. i ran the basic pipelines in this repo hailo-rpi5-examples without any errors. but to try the hailo python api for rpi 5 that came after the hailort 4.18.0 update i downloaded this repo Hailo-Application-Code-Examples and tried to use it.
Here is the error I got.

(hailo3-8_env) pi@raspberrypi:~/Hailo-Application-Code-Examples/runtime/python/detection_with_tracker $ ./detection_with_tracker.py -i input_video.mp4 -o output_video1.mp4 -l coco.txt -s 0.5 -n yolov5m_wo_spp_60p.hef 
[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:
Traceback (most recent call last):
  File "/home/pi/py_envs/hailo3-8_env/lib/python3.8/site-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/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/Hailo-Application-Code-Examples/runtime/python/utils.py", line 130, in run
    with self.infer_model.configure() as configured_infer_model:
  File "/home/pi/py_envs/hailo3-8_env/lib/python3.8/site-packages/hailo_platform/pyhailort/pyhailort.py", line 2836, in configure
    return ConfiguredInferModel(configured_infer_model_cpp_obj, self)
  File "/home/pi/py_envs/hailo3-8_env/lib/python3.8/site-packages/hailo_platform/pyhailort/pyhailort.py", line 110, in __exit__
    self._raise_indicative_status_exception(value)
  File "/home/pi/py_envs/hailo3-8_env/lib/python3.8/site-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
  0%|                                      | 0/349 [00:00<?, ?it/s]
  0%|                                      | 0/349 [09:38<?, ?it/s]

I understand from this that I need to compile this model for hailo8l. obviously I wanted to test it on a ready-made model before. at the moment I don’t have access to a computer where I can compile a model for hailo8l. are there any other ready-made models for hailo8l to test.

this is the environment I used

(hailo3-8_env) pi@raspberrypi:~/Hailo-Application-Code-Examples/runtime/python/detection_with_tracker $ pip list
Package                Version
---------------------- -----------
argcomplete            3.5.0
bytetracker            0.3.2
certifi                2024.8.30
charset-normalizer     3.3.2
colorlog               6.8.2
contextlib2            21.6.0
contourpy              1.1.1
cycler                 0.12.1
Cython                 3.0.11
defusedxml             0.7.1
fonttools              4.53.1
future                 1.0.0
hailort                4.18.0
idna                   3.10
importlib_resources    6.4.5
kiwisolver             1.4.7
lap                    0.4.0
loguru                 0.7.2
matplotlib             3.7.5
netaddr                1.3.0
netifaces              0.11.0
numpy                  1.23.3
opencv-python          4.10.0.84
opencv-python-headless 4.10.0.84
packaging              24.1
pillow                 10.4.0
pip                    24.2
pyparsing              3.1.4
python-dateutil        2.9.0.post0
PyYAML                 6.0.2
requests               2.32.3
scipy                  1.10.0
setuptools             56.0.0
six                    1.16.0
supervision            0.19.0
torch                  1.13.0
tqdm                   4.66.5
typing_extensions      4.12.2
urllib3                2.2.3
verboselogs            1.7
zenlog                 1.1
zipp                   3.20.2

The projects in the HACER are mostly around Hailo-8. To retro fit it to the AI Kit, you need to use Hail-8L HEFs that are available on the model-zoo.

1 Like