the code i have used:
from hailo_sdk_client import ClientRunner
import config
model_name = config.ONNX_MODEL_NAME
quantized_model_har_path = f"{model_name}_quantized_model.har"
runner = ClientRunner(har=quantized_model_har_path)
hef = runner.compile()
file_name = f"{model_name}.hef"
with open(file_name, "wb") as f:
f.write(hef)
har_path = f"{model_name}_compiled_model.har"
runner.save_har(har_path)
For my model i am using the yolov8m model which has been retrained on a dataset with 4 classes in imgsz 480
If you need more data feel free to ask