Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Faster R-CNN: How to avoid multiple detections in same area?

I use the Tensorflow object detection API to train the Pascal VOC dataset from scratch. I just had a look on the first results after 200k training steps and the results are okay, despite that I often have many detections of the same class in Overlapping regions. For example consider the following detections (ignore the wrong person detection in the first image):

Multiple detection of the same motorcycle Multiple detections of the same aeroplane

Is there a general way to avoid such multiple detecions of the same object? I guess this is caused by overlapping Region proposals for which the Detection network predicts objects that fit the groundtruth data above the 0.7 IoU threshold, so maybe it would help to set this threshold a bit higher?

like image 456
ITiger Avatar asked Nov 19 '25 00:11

ITiger


1 Answers

Do you mean literally from scratch, or did you use a fine_tune_checkpoint?

As others have suggested, you can increase the IOU threshold for NMS (decreasing it to something like .01 will effectively prevent a region from being detected if it overlaps with another).

like image 146
Jonathan Huang Avatar answered Nov 21 '25 22:11

Jonathan Huang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!