Question for compute_iou
redleaf-kim opened this issue · comments
Firstly thanks for the greatest work.
If I got iou equation correctly, I need to get W
and H
for each predicted bounding boxes and target boxes and overlapping boxes respectively to calculate iou score. And here W, H
is boxes[:, 2] - boxes[:, 0]
and boxes[:, 3] - boxes[:, 1]
respectively.
But compute_iou
function below take W, H
as boxes[:, 2] + boxes[:, 0]
and boxes[:, 3] + boxes[:, 1]
respectively.
Here is the question. Is there any specific reason for calculating iou scores like below or am I get wrong about iou score equation?
Lines 81 to 94 in c0b2092
I got it... for FCOS l∗, t∗, r*,b∗
are the distances from the location to the four sides of the bound-ing box.