YOLOv8 Model in SAHI with “no_sliced_prediction=True” got 0.26 less mAP50 than before? #1030
-
First, thank you for your contributions to SAHI. When I compute the metrics for val datesets using standard inference with a YOLOv8 Model, I could get 0.862 mAP50. However, I just get 0.607 mAP50 using sliced inference with the same model, simultaneously setting "no_sliced_prediction=True" or setting "no_sliced_prediction=False" but tuning the "slice_size" to an oversized value, like 8000x8000, definitively inferring only one slice on a picture. By the way, I ensure the other reasoning variables the same. What a surprising result! What's more, I make another try, using sliced inference with am appropriate slice-size (such as 4032x4032), and the mAP50 rises to 0.931. Now I confirm that SAHI is effective to improve the recognition accuracy, especially for tiny objects. However, I really wonder why the values between the last two experiments are markedly different? Looking forward to your reply. @sinanonur @fcakyon |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @WaderLaken I suspect mAP 's not calculated with the same library but It needs to be checked. Also can you make sure there is no post processing with your code? You can also compare the results of no sliced prediction with standard inference. Also you can try to calculate the mAP in a They should be the same. It not it might require further investigation. If prediction results are different Is it possible for you to share a notebook or code with a sample image demonstrating this situation? Best |
Beta Was this translation helpful? Give feedback.
-
@WaderLaken there was a bug in YOLOv8 prediction thresholds. This PR fixed the issue: #988 |
Beta Was this translation helpful? Give feedback.
@WaderLaken there was a bug in YOLOv8 prediction thresholds. This PR fixed the issue: #988