Limit bounding boxes #2248
-
Hi. I have images with three different objects, where they only appear once. When I am training and detecting I sometimes get multiple bounding boxes for each class. I want to limit the number of bounding boxes to one per class. Is there a hyperparameter or a function I can change to easily fix this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
@amandakj yes, you can control this by varying NMS settings to suit your needs:
|
Beta Was this translation helpful? Give feedback.
-
@amandakj we are modifying the default inference behavior here to |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@glenn-jocher How can I set yolov5 for multiclass not multilabel task? is this done by Agnostic NMS only or there's another setting? |
Beta Was this translation helpful? Give feedback.
@amandakj yes, you can control this by varying NMS settings to suit your needs:
python detect.py --agnostic
yolov5/utils/general.py
Line 409 in 9d87307