Output degradation after compilation

Dear all,

I converted a custom centernet.tflite model into centernet.har. Convertion was OK as I can see from simulation using “runner.infer_context(InferenceContext.SDK_FP_OPTIMIZED)”.
Howevere, when I try to compress it into centernet.hef either:

  1. using CLI:
    hailo compiler centernet.har
  2. using API:
    hef = runner.compile()
    with open(“centernet.hef”, “wb”) as f:
    f.write(hef)
    The centernet.hef does do any prediction (absolute degradation).

Since .compile() function does not have any arguments, I do not know how to proceed. Any idea why a simulation with a .har file works, but its .hef files does not.

With regards,
Ruben

Welcome to the Hailo Community!

You should first run trough the tutorials in the Hailo AI Software Suite Docker to understand the workflow. Run the following command:

hailo tutorial

This will start a Jupyter notebook server with notebooks for each step of the conversion process.

1 Like