Failed to run my custom hef file on rasberry pi 5

Hi. I’m trying to run my custom hef file on rasberrypi5.

I somehow converted my pt file to hef file(cytp.hef) on my local pc which is windows11. (I worked on W2SL Linux env)

and I run it on my rasberrypi by this command :slight_smile:
python basic_piplines/detection.py --labels-json resources/barcode-label-json --hef-path resources/cytp.hef --input /dev/video0

this following error msg came out :

It seems like my hef file is uncompatible version to run on my rasberrypi. So I check my hef file version by this command :
hailortcli parse-hef ./resources/cytp.hef

and this came out :

is it right that my hef file is not correct version to run on rasberrypi? how can I solve this?

my hailort version is 4.20

Hey @Jaewon_Ahn,

The error message unsupported hef version 1079009656 indicates your .hef file is not compatible with the HailoRT version on your Raspberry Pi.

Possible Causes

  1. Version Mismatch Between Compiler and Runtime

    • The .hef file may have been compiled using a different version of the Dataflow Compiler than what is supported by HailoRT v4.20.
  2. Incorrect Hardware Target

    • The compiled model may be intended for a different architecture than the one running on your Raspberry Pi.

Fixes

  1. Check version with: hailo --version, it should be 3.30 or 3.29

  2. When compiling, specify the correct architecture:
    --hw-arch hailo8 or --hw-arch hailo8l based on the chip on your RPi