Hailo parser missing hw_arch parameter

Hello,

I am trying to convert a model from onnx to har using the Data flow compiler cli (version 3.28.0) with the command

hailo parser onnx model.onnx

However, I get the warning

[warning] hw_arch parameter not given, using the default hw_arch hailo8.

How can I pass a different hw_arch? (I tried ‘–hw_arch hailo8l’ but it fails)

Welcome to the Hailo Community!

Command line parameters use minus sign while variables use underscores. I see how this can be confusing but I think it is used consistently.

Try:

hailo parser onnx ... --hw-arch hailo8l model.onnx

If in doubt you can use the build in help to check the parameters available. The help is based on the parameters in the command to keep it short.

hailo parser onnx --help
optional arguments:
...
  --hw-arch {hailo8,hailo8r,hailo8l,hailo15h,hailo15m,hailo10h}
                        Hardware architecture to be used
...

thanks @KlausK,

yes, the problem was I was passing the hw_arch parameter in the wrong position (‘hailo parser --hw-arch hailo8l onnx model.onnx’)