Hello HAILO team, I’ve been trying to run my custom yolov8s model on my 8L. At the moment I get to compile to get the HEF file Im getting this message.
hailomz compile yolov8s --ckpt=best.onnx --hw-arch hailo8l --calib-path train/images --classes 1 --performance
usage: hailomz compile [-h] [–yaml YAML_PATH] [–ckpt CKPT_PATH] [–hw-arch] [–start-node-names START_NODE_NAMES [START_NODE_NAMES …]] [–end-node-names END_NODE_NAMES [END_NODE_NAMES …]]
[–model-script MODEL_SCRIPT_PATH | --performance] [–har HAR_PATH] [–calib-path CALIB_PATH] [–resize RESIZE [RESIZE …]] [–input-conversion {nv12_to_rgb,yuy2_to_rgb,rgbx_to_rgb}]
[–classes]
[model_name]
hailomz compile: error: argument --hw-arch: invalid choice: ‘hailo8l’ (choose from ‘hailo15h’, ‘hailo15m’, ‘hailo15l’, ‘hailo10h’, ‘hailo10p’, ‘hailo12l’)
The Hailo AI Software Suite was divided into two versions. One for Hailo-8/8L and one for Hailo-15 and Hailo-10. You need to install the Hailo AI Software Suite Docker for Hailo-8.
Hello Klausk I went to this aproach and indeed help me, now Im getting another error, at the moment I alredy got the .hef model on the pi but when I try to run it, appears this message
python basic_pipelines/detection.py --hef-path resources/box_seg.hef --input rpi --labels-json resources/procarsa-labels.json
Loading environment variables from /home/andres/hailo-rpi5-examples/.env… All required environment variables loaded.
Auto-detected Hailo architecture: hailo8l
[1:04:00.478011280] [4940] INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
[1:04:00.485507113] [4941] INFO RPI pisp.cpp:720 libpisp version v1.2.1 981977ff21f3 29-04-2025 (14:13:50)
[1:04:00.488150379] [4941] INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/pisp/imx477.json
[1:04:00.495872251] [4941] INFO Camera camera_manager.cpp:220 Adding camera ‘/base/axi/pcie@1000120000/rp1/i2c@88000/imx477@1a’ for pipeline handler rpi/pisp
[1:04:00.495916530] [4941] INFO RPI pisp.cpp:1179 Registered camera /base/axi/pcie@1000120000/rp1/i2c@88000/imx477@1a to CFE device /dev/media0 and ISP device /dev/media2 using PiSP variant BCM2712_C0
NMS score threshold is set, but there is no NMS output in this model.
CHECK_SUCCESS failed with status=6
[1:04:00.499046116] [4940] INFO Camera camera.cpp:1215 configuring streams: (0) 1280x720-RGB888/sRGB (1) 1280x720-RGB888/sRGB (2) 2028x1080-BGGR_PISP_COMP1/RAW
[1:04:00.499153950] [4941] INFO RPI pisp.cpp:1483 Sensor: /base/axi/pcie@1000120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12/RAW - Selected CFE format: 2028x1080-PC1B/RAW
Picamera2 configuration: width=1280, height=720, format=RGB
picamera_process started
But Im not getting any image on the screen, any idea what could be causing this issue?
I did not do that step, I got the model on the onnx format and the used this command
hailomz compile yolov8s_seg –ckpt=best.onnx —hw-arch hailo8l –calib-path train/images –classes 1 –performance
Compiler Version: 3.32.0
Model zoo Version 2.16
The compile I did it using WSL 22.04
At the moment in the directory I have the yolov8s.har, yolov8s_seg.har and also the yolov8s_seg.har, is there anything I could do with these files to get the result you asked for?
As you can see from the output this is a typical Yolo model output without post-processing.
The detection app expects a YOLO object detection model with NMS included in the HEF file. Run the same command on the yolov8s.hef model from the Model Zoo or the HEF file that comes with the example to see the difference.
For this model, I would recommend the following example: