ultralytics / yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
50.78k stars 16.35k forks source link

How to use soft-nms? #737

Closed c464851257 closed 4 years ago

c464851257 commented 4 years ago

❔Question

Additional context

github-actions[bot] commented 4 years ago

Hello @c464851257, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook Open In Colab, Docker Image, and Google Cloud Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

For more information please visit https://www.ultralytics.com.

glenn-jocher commented 4 years ago

@c464851257 see https://arxiv.org/abs/1704.04503

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

shenyi0220 commented 2 years ago

A better box clustering framework is proposed here(https://github.com/shenyi0220/CP-Cluster), as shows better accuracy compared NMS/Soft-NMS. All Yolo5(v4,v6) models can be improved by this brandnew post-processing method.

glenn-jocher commented 2 years ago

@shenyi0220 very interesting, thanks for the link!

smsver2 commented 1 year ago

@glenn-jocher I was wondering if Soft-NMS or CP-Cluster has been integrated into the current version of the codebase(or in yolov8 version). I understand that CP-Cluster may have licensing restrictions, so I'm not particularly optimistic about its availability in a CUDA-supported version. However, any information you could provide would be greatly appreciated.

I am particularly interested in person detection under high occlusion scenarios. After some research, it appears that Soft-NMS could significantly reduce the number of discarded high-occlusion boxes. However, if you have any insights or recommendations for handling high occlusion cases, I would greatly appreciate your expertise.

glenn-jocher commented 1 year ago

@smsver2 soft-NMS and CP-Cluster have not been integrated into the current version of the YOLOv5 codebase or in the yolov8 version. While Soft-NMS can be effective in reducing the number of discarded high-occlusion boxes, it may not be the optimal solution for handling such scenarios.

For person detection under high occlusion scenarios, I recommend exploring other techniques such as data augmentation, using higher-resolution images, or applying object tracking algorithms to track and maintain the identity of occluded objects. These techniques can help improve detection performance in challenging scenarios.

However, please note that YOLOv5 is a general-purpose object detection framework, and it may not have specific optimizations or techniques specifically tailored for high occlusion scenarios out-of-the-box. You may need to experiment with different approaches and customize the model and post-processing steps based on your specific requirements.

Thank you for your interest in YOLOv5, and I hope this information helps you in handling high occlusion cases effectively.