Conversion of best.onnx file to best.hef file

I am converting a .onnx file to .hef file. I am done converting the file into .har but when I am performing the last step to compile and get the .hef file i am getting the mapping failed error, i am using the images 640x640 size.

How to solve this error and what could be the possible methods. Or does anyone has different method to do this conversion?

i stuck here too. Im waiting for a reponse :slight_smile:

Hi @ritika_dawande, welcome to the Hailo Community! :grin:

You could try adding the following line to the model script:
allocator_param(timeout=100h)
The model script can be loaded after quantization as well, so there’s no need to rerun that step.

Also, as a side note, I noticed you’re getting multiple contexts. It might be worth trying this setting too:
performance_param(compiler_optimization_level=max)

This tells the compiler to try and use as many device resources as possible, which often helps both with allocation and overall performance.

I have actually tried both of the mentioned steps yet getting the same error. What can be the issue here?

@ritika_dawande Could you please share the full error log from those runs (hailo_sdk.core.log)?

You can also try reducing the resource utilization manually, for example, for 50% of the resources:
resources_param(max_utilization=0.5)

i will share you all the files and steps and then maybe you could find out the errors. is it okay?

Sure, please send it as a dm.
Did you also try the recommendation below?

Yes I did try all the recommended steps and will share the files in a few minutes.