Beginner Question: Converting ONNX to HEF in WSL2 Without HailoRT

Hi, I’m a beginner.

I’m trying to convert an ONNX model to HEF using Dataflow Compiler and Model Zoo in a WSL2 environment.

I heard that this process is possible without HailoRT, but I keep getting the following error:

No module named ‘hailo_platform’
Has anyone successfully done this?

I would really appreciate any advice.

This version keeps your message clear, polite, and easy to understand. Let me know if you want any modifications! :blush:

Hey @mosimosidesu ,

Welcome to the Hailo Community!

Model compilation only requires the Hailo Dataflow Compiler (DFC), not HailoRT.

Could you please share:

  1. Where you’re encountering this error?
  2. Are you using Python scripts or CLI commands for the conversion?

This will help me provide more specific guidance for your situation.

Thank you for your response!

I referred to the following webpage:

However, I don’t fully understand the content. I followed the steps by copying and pasting the commands.

I encountered an error when running the following command:
python hailo_model_zoo/main.py compile yolov8n --ckpt best.onnx --hw-arch hailo8l --calib-path /home/aaa/datasets/train/images --classes 3 --performance

After installing HailoRT, the “No module named ‘hailo_platform’” error was resolved, but I am now facing a different error that stops the process.

After researching the meaning of the parameters and adjusting the settings, I was able to resolve the issue on my own. I sincerely appreciate your time and support. Thank you very much.