I have recently been trying to convert a custom resolution YOLOv8n-Pose model to .hef. The input resolution of this model is 320x320, and the ONNX works perfectly without any issues.
On converting to hef, the output of the model is out of range, e.g confidence scores as -5.43 (Going Negative). Other values like bounding boxes are out of range as well.
Hence, we draw nothing on the image, and results are not usable.
I have tried modifying the config files, and trying different levels of optimization, but none of it works. Used standard CLI commands like hailomz parse, optimize and compile commands.
I am attaching the ONNX in this thread for reference.
Hey @jsingh
Thanks for sharing the details and the ONNX file. From what you’ve described, it sounds like the issue might be related to how the output layers are being parsed when using hailomz or the hailo CLI. If the end nodes aren’t set properly during parsing, it can lead to weird output like negative confidence scores or garbage values for bounding boxes.
One thing you might want to try (if you haven’t already) is explicitly setting the output layers using the --end-node-names flag during the parse step. These should align with the original YOLOv8s-Pose model output layers that Hailo uses in their model zoo.
After that you need to create your .alls files that include the “end node names” specified above. You can refer to the Hailo Model Zoo for some examples of .alls files.
Finally, follow the last 2 steps mentioned here:
Option 2 - Using Hailo Model Zoo
You can check this link and try using the hailomz. You can try the Yolov8s-pose as reference as it was suggested above.