Getting very low accuracies when running inference on yolov8n

Hi @Jubesh_Joseph

I see a few potential issues here:

  1. Not sure how you are getting category_idbut an adjustment is needed to go from 80 classes predicted by model to 91 classes in the original annotations

  2. Your bbox coordinates should be normalized (if your original annotations are normalized) and should be with respect to original image. Since bboxes returned by inference are with respect to model size (640x640x3), you need to scale bboxes to original image size by undoing the effects of resizing and letterboxing.

You can try suggestion in this thread: Yolo evaluation - General - Hailo Community and see if they can help.

Alternatively, if you use our DeGirum PySDK, we can give you a script that does the evaluation for you. FYI, DeGirum PySDK is a python package designed by DeGirum (a SW partner of Hailo) to simplify working with Hailo devices: Simplifying Edge AI Development with DeGirum PySDK and Hailo