Before we move further, we need to know how to measure whether our model detected an object correctly or not; for this, we calculate the Intersection Over Union (IoU) that will return a number, telling us how good our detection was based on some reference (Ground Truth). IoU is calculated by dividing the area where a detection and ground-truth box overlap with each over by the total area covered by the detection and ground-truth box:
Here is an example of a poor, good, and excellent IoU:
By convention, ...