I’m trying to compile a custom YOLOv8m model (trained with Ultralytics) in HEF format.
I exported my PyTorch model (best.pt) to ONNX (best.onnx) using Ultralytics with imgsz=640 and opset=11 (simplify=True, dynamic=False), as suggested in their GitHub guide ‘YOLOv8 Retraining’.
My goal is to obtain a best.hef with three classes.
I’ve tried the hailo parser → hailo optimize → hailo compile script and the hailomz compile command, following their documentation and making logical inferences based on the CLI usage prompts.
The persistent errors are:
Hailo optimize fails with: hailo_sdk_client.sdk_backend.sdk_backend_exceptions.AllocatorScriptParserException: The given layers best/conv71 do not exist in the HN (when using /local/workspace/hailo_model_zoo/hailo_model_zoo/cfg/alls/generic/yolov8m.alls).
Hailomz compile fails with: hailomz compile: error: argument model_name: invalid option: ‘/local/workspace/best.hef’ (when I try to specify the input ONNX and output HEF, even though their GitHub guide shows it).
I need the exact command-line syntax or an example script (Python or .alls) that is 100% compatible with version 2025.04 of my Hailo AI Software Suite to compile a custom 3-class YOLOv8m model. Could you please provide me with the direct solution for this use case?