I’m using the C library to utilize the hailo-8l hardware on the raspberry pi 5. I have gotten an image into frames and pixels, and am able to feed them into the configured .hef file, and I have output, but I don’t know how to interpret the output.
I’m using the model zoo yolov7, which parse-hef
gives as
Output yolov7/yolov5_nms_postprocess FLOAT32, HAILO NMS(number of classes: 80, maximum bounding boxes per class: 80, maximum frame size: 128320)
But I don’t know what bits are what. When I run the model, I get an output like the snippet below. The first 5 make sense, classification, confidence, and 4 coords, but after all of the zeros, there is a classification, followed by 7 floating point numbers, followed by a possible classification, followed by 5 floating point numbers, and it doesn’t make any sense to me.
Example output:
{ 2e0, 2.9149818e-1, 1.3322696e-1, 1.0043838e0, 8.3363557e-1, 8.901919e-1, 8.9297575e-1, 7.028085e-2, 9.282986e-1, 8.92289e-2, 2.3529352e-1, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 1e0, 7.443513e-1, 1.754624e-1, 8.730015e-1, 2.6385126e-1, 3.3716178e-1, 1e0, 9.2661124e-1, 1.9907206e-3, 9.98977e-1, 1.4516605e-1, 6.3420063e-1, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, 0e0, -3.0316488e-13,