HAILO_INVALID_HEF, Unsupported hef version 1079009656

Hi, so i’m compiling my hef from my laptop and when I’m trying to run my custom hef file on rasberrypi5. it give me this error

the version dfc i alr try to use is 3.30, 3.29 and 3.31

for my hailort version on my raspi is

image

this is my hailo device

and this is the command 1 use for compile

hailo parser onnx model_solid10ms_cnn_fixed.onnx --hw-arch hailo8l --input-format x_cf=nchw x_feat=nchw --tensor-shapes x_cf=[1,1,1,8192] x_feat=[1,5,1,1]

hailo optimize model_solid10ms_cnn_fixed.har --use-random-calib-set --hw-arch hailo8l --output-har-path model_solid10ms_cnn_fixed_quantized.har

hailo compiler model_solid10ms_cnn_fixed_quantized.har --hw-arch hailo8l --output-har-path model_solid10ms_cnn_fixed.hef

any ideas how to solve this error?

Welcome to the Hailo Community!

First, Hailo SW products are compatible with each other on specific versions. Please check the Hailo Dataflow Compiler User Guide section Release Versions Compatibility.

This is the source of your issue. You are overwriting the HEF file with the HAR file and naming it *.hef.
If you change the extension to .har, you will get a separate HEF file as intended.

Note that the HEF file is also included inside the HAR file. You can extract it using the following command:

hailo har extract model.har

Alternatively, you can rename the .har file to .tar.gz and extract it using standard Ubuntu tools.
The HAR file is simply a TAR archive containing all the model files.

Thank you so much! I managed to solve the error by re-reading the documentation and applying your solution. It’s working perfectly now

1 Like