How to generate a HAR file for Compiling

I am trying to compile a onnx to HEF, I am using the docker AI Suite and the only parameter I am missing is the HAR file.

I am planning to Import the compiled HEF file to the raspberry pi 5 but I am doing the compiling by using my computer.

The HAR file is an intermediate format generated during the model conversion. The model conversion flow is explained in the Hailo DataFlow Compiler User Guide (login required).

There are two ways to perform the model conversion:

  • If you are using a model from the Model Zoo, (original or retrained with a retraining docker) you can use the hailomz tool to quickly perform the parsing/optimization/compilation steps.
  • If you are using your own model, the Hailo DataFlow Compiler Python APIs (or the hailo CLI tool) will give you better control on the conversion flow. You can use the hailo tutorial command from the Hailo AI SW Suite to open the Tutorial section, i.e. a collection of Jupyter-Notebooks that will guide you through the conversion process, including the generation of the HAR and HEF files.