2 Errors occurred while Using Hailo SDK

  1. Error Occurred in progress of parsing onnx file


  1. i can’t see the performance figures in profiler

hailo profiler --hef my_model.hef my_model_compiled_model.har

how can i solve these problems?

( my environment )
OS version = ubuntu 22.04
PCIE Driver = 4.17v
Hailo sw suite = 4.17v
CPU = i7 - 13700
kernel version = 6.5.0-35-generic
Hailo8

The process was performed well, but the numbers are not comming out.
is there something i need to set up?

hey @rhymus314

To get performance you have to run

hailortcli run {.hef} { --batch-size 8 , optional }

Regards

thanks, i can see the performance when using hailortcli run

but, is there any way i can see performance in Profiler .html ?
( the picture i attached shows the figures
Latency = N/A , OP/s = N/A, Input BW = N/A , Output BW = N/A )
why does it show N/A?

btw, how to solve the first question?
i had an error while parsing our onnx file


hailo parser onnx --start-node-names images --end-node-names 2334 2313 2312 --hw-arch hailo8 my_model.onnx

my model made using pytorch, and is a model that converts the currently working model to onnx.
how could i know what the problem is?

[info] CPU : x86_64, i3-12100
[info] OS : Ubuntu 22.04
[info] Memory : Total: 15GB, Available: 12GB
[info] Kernel 6.5.0-35-generic
[info] Hailo DFC Version : 3.27.0
[info] HailoRT & Driver Version : 4.17.0

It shows N\A, since there are some depency on your system CPU, RAM etc.

Can you tell if this model passes ONNX check?

i checked this part has been solved, thanks

yes, i just checked it again, this model passes onnx checker

I’m a bit confused :thinking:, are you good now?

if i send you the onnx file to email, can you check it?

1 Like

yes, sure, please send it.

1 Like

As a first step, I always try to simlify the model, especially good for large models:
onnxsim det_fox.onnx det_fox-sim.onnx

After this, it’s easier to inspect the model structure, and I could see that in the begining there are a bunch of unsupported ops, probably there to address variable input frame sizes:
image
So, I’ve set the start-node-names to the first conv of the net. Then, I’ve used the last conv layers in the bulk of the model as end-nodes. This is the full command:

hailo parser onnx det_fox-sim.onnx \
--end-node-names \
    /rpn/head/bbox_pred_4/Conv /rpn/head/bbox_pred_3/Conv \ 
    /rpn/head/bbox_pred_2/Conv /rpn/head/bbox_pred_1/Conv \
    /rpn/head/bbox_pred/Conv /rpn/head/cls_logits_4/Conv \
    /rpn/head/cls_logits_3/Conv /rpn/head/cls_logits_2/Conv \
    /rpn/head/cls_logits_1/Conv /rpn/head/cls_logits/Conv \
    /backbone/fpn/layer_blocks.3/layer_blocks.3.0/Conv \
    /backbone/fpn/layer_blocks.0/layer_blocks.0.0/Conv \
    /backbone/fpn/layer_blocks.1/layer_blocks.1.0/Conv \
    /backbone/fpn/layer_blocks.2/layer_blocks.2.0/Conv \ 
--start-node-name /backbone/body/conv1/Conv
1 Like

oh, i totally understand it
now, it’s working

thank you for your support :smiley: