Multiple instances predicted over the same ground truth instance YOLOv8 #16285
-
Hello everyone and thanks in advance for your help! We are using the YOLOv8 model and we are trying to segment some ant roads, the problem we are facing is that sometime some roads are detected multiple times. We searched for a solution and we understood that we need to modify the IoU Threshold when training by incrementing it since it will tell the model to focus on getting a higer surface of intersection over the ground turth. Is there a way to modify the IoU threshold when training the YOLOv8 Model? maybe we missunderstood and it should only be modified when predicting. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
👋 Hello @genaroNF, thank you for reaching out and for using Ultralytics YOLOv8 🚀! Let's dive into your query about adjusting the IoU threshold. It sounds like you'd like to modify the IoU threshold to handle instances where multiple predictions overlap with the same ground truth. You have two opportunities to adjust IoU-related parameters:
For best practices when submitting discussions or issues, please provide:
👉 Check our Docs for more guidance on training and prediction. If you still face challenges, feel free to ask more questions! This is an automated response, but an Ultralytics engineer will assist you soon. For real-time support, you can also join our Discord community 🎧. Happy modeling! 🎉 |
Beta Was this translation helpful? Give feedback.
-
@genaroNF IoU threshold is an inference argument, not a training argument. You can modify this when predicting with |
Beta Was this translation helpful? Give feedback.
@genaroNF the
iou_thres
in the config file is typically used for inference to filter overlapping detections. It doesn't affect training in YOLOv8.