Conversation
Compute agnositc NMS considering a subset of classes, and non-agnostic NMS for the rest of the classes. This is useful when some classes should not be colocated, while others should be. For example, take a model trained to detect people and several classes of shirt, where each shirt class is trained on a different shirt color. In this case, we'd like to detect only a single shirt class per person by using agnostic NMS on just the shirt classes, while allowing the person class to be detected with substantial overlap with any shirt class. This is accomplished by splitting the predictions during postprocessing, computing agnostic NMS for the shirts, and non-agnostic NMS for the person. This approach is implemented in this PR.
|
I have read the CLA Document and I sign the CLA |
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
|
👋 Hello there! We wanted to let you know that we've decided to close this pull request due to inactivity. We appreciate the effort you put into contributing to our project, but unfortunately, not all contributions are suitable or aligned with our product roadmap. We hope you understand our decision, and please don't let it discourage you from contributing to open source projects in the future. We value all of our community members and their contributions, and we encourage you to keep exploring new projects and ways to get involved. For additional resources and information, please see the links below:
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
Compute agnositc NMS considering a subset of classes, and non-agnostic NMS for the rest of the classes.
This is useful when some classes should not be colocated, while others should be.
For example, take a model trained to detect people and several classes of shirt, where each shirt class is trained on a different shirt color. In this case, we'd like to detect only a single shirt class per person by using agnostic NMS on just the shirt classes, while allowing the person class to be detected with substantial overlap with any shirt class.
This is accomplished by splitting the predictions during postprocessing, computing agnostic NMS for the shirts, and non-agnostic NMS for the person. This approach is implemented in this PR.
Minimal reproducible example:
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Adds support for hybrid-agnostic NMS, allowing users to apply class-agnostic non-max suppression (NMS) to specific classes in YOLO models. 🏷️✨
📊 Key Changes
agnostic_nms_classesoption in the configuration, enabling class-agnostic NMS for selected classes only.🎯 Purpose & Impact