← Back to Modules

Compile the YOLOv11n Model to a Hailo HEF

Use the Hailo Model Zoo compiler to convert your fine‑tuned ONNX model into a Hailo Executable File (.hef) for deployment on the Raspberry Pi AI Kit.

With your Hailo environment activated, calibration images prepared and configuration files created, compile your model into a HEF file. The compilation process uses the calibration images to quantize the model for the Hailo‑8 hardware.

bash
# Activate your Hailo virtual environment if not already
source ~/hailo_venv/bin/activate

# Run the Hailo compiler
hailomz compile --ckpt /home/USER/hailo_venv/yolov11n_finetune.onnx \
  --calib-path images_raw \
  --yaml /home/USER/hailo_venv/yolov11n_2cls.yaml \
  --hw-arch hailo8 \
  --model-script /home/USER/hailo_venv/y11.alls

Subscribe to our newsletter

The latest educational robotics news and articles, sent to your inbox weekly.