Closed AntMorais closed 2 years ago
From what you have mentioned, clearly the model is giving the box 2 a higher confidence than the other box 1 and 3, explaining why increasing confidence threshold or reduce IoU threshold won't help.
Regarding this issue, I have several possible solutions for your:
The model was in fact overfitting. I improved the problem by adding more data and making sure I don't overfit. I also changed the way I annotate the images by making the bounding boxes tighter on the body of the object, so that there is less overlap between the bounding boxes of different objects. Thank you for you answer and great work on this repo!
@XinzeLee I have an issue when there are two adjacent or overlapping objects that I want to detect. I created a diagram to give an example.
The objects I am trying to detect have a rectangular shape and are represented in the image by black rectangles with grey outlines. The bounding boxes predicted by the model are in red.
As you can see, box 1 and 3 are correct and box 2 is incorrect. Increasing the confidence or decreasing the IoU threshold cause only box 2 to be visible.
This happens in almost every case where 2 or more objects are close together.
Any idea on the root of the problem?