Hello Hailo Community,
As many of you, I want to run my own models on the Hailo8L.
To achieve this I am converting my Torch models to ONNX using:
torch.onnx.export(
model.eval().cpu(),
input,
'model.onnx',
export_params=True,
do_constant_folding=True,
input_names=['input'],
output_names=['a', 'b', 'c'],
opset_version=17,
dynamic_axes={
'input': {0: 'batch_size'},
'a': {0: 'batch_size'},
'b': {0: 'batch_size'},
'c': {0: 'batch_size'},
},
)
However, when running
hailo parser onnx --hw-arch hailo8l model.onnx
I get the following error
Parsing failed with recommendations for end node names: ['_v_382'].
Even when specifying the end node names the error persists.
When examining the ONNX model in Netron the correct a/b/c end nodes are shown.
Also, the ONNX model behaves correctly when using OpenVino for inference.
How could I correctly export a Torch model to ONNX and convert it to HAR and finally to HEF for inference on the Hailo8L?