ultralytics / yolov5

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

Hard Negative Minings #7338

Closed NiranjanRavi1993 closed 2 years ago

NiranjanRavi1993 commented 2 years ago

Search before asking

Question

Hi, Thank you for the excellent repo. I was trying to analyze/understand the performance of Single Shot Detector (SSD) and YoloV5. I have a question related to the "hard negative mining (HNM)" concept. SSD chooses a ratio of negative to positive samples as 3:1 to carry out HNM.

Does Yolov5 also follow the same approach? The multibox loss calculation function of SSD is a sum of confidence+localization loss whereas the multibox loss of YoloV5 is different. Where can I understand the usage of HNM in yolov5?

Please correct me if I am wrong.

Any guidance would be highly helpful.

Thanks and Regards Niranjan Ravi.

Additional

No response

glenn-jocher commented 2 years ago

Hard negative mining is not used in YOLOv5.

On Thu, 7 Apr 2022 at 18:58 NiranjanRavi @.***> wrote:

Search before asking

Question

Hi, Thank you for the excellent repo. I was trying to analyze/understand the performance of Single Shot Detector (SSD) and YoloV5. I have a question related to the "hard negative mining (HNM)" concept. SSD chooses a ratio of negative to positive samples as 3:1 to carry out HNM.

Does Yolov5 also follow the same approach? The multibox loss calculation function of SSD is a sum of confidence+localization loss whereas the multibox loss of YoloV5 is different. Where can I understand the usage of HNM in yolov5?

Please correct me if I am wrong.

Any guidance would be highly helpful.

Thanks and Regards Niranjan Ravi. Additional

No response

— Reply to this email directly, view it on GitHub https://github.com/ultralytics/yolov5/issues/7338, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMXEGJVIKTCJZMAFYT65JDVD4H27ANCNFSM5S2AHD3A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- https://www.ultralytics.com/

Glenn Jocher Founder & CEO, Ultralytics +1 301 237 6695 https://www.twitter.com/ultralytics https://www.youtube.com/ultralytics https://www.github.com/ultralytics https://www.linkedin.com/company/ultralytics

NiranjanRavi1993 commented 2 years ago

Thank you for the clarification.