Although during training we assign only one bounding box to a window, the one that owned the center, during testing it can happen that many windows think that they have the center of the best bounding box.
For example, we may have three bounding boxes, and therefore three windows on the center of the bounding boxes, and each of these windows thinks that they have the best bounding box:
But what we'll need is only one bounding box, and preferably the best one. Max suspension will solve this problem.
The max suppression algorithm looks like this if written in observable code:
Let's follow these steps to understand how max pooling ...