You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! thanks for your contribution!, great first issue!
yurithefury
changed the title
Incorrect IntersectionOverUnion calculations when predictions or targets are empty
Incorrect IntersectionOverUnion calculations when predictions or targets contain empty boxes
Oct 28, 2024
🐛 Bug
IntersectionOverUnion appears to mishandle cases where targets or predictions contain empty bounding boxes
To Reproduce
The code above correctly returns IoU of 0.5, but if the first
targets
item contains empty bounding boxes, the result unexpectedly changes to 1:This seems incorrect, as the model made inaccurate predictions in both cases. The same issue arises when targets and predictions are swapped.
Expected behavior
The IoU value should be 0.5 when predictions or targets contain empty boxes.
Environment
The text was updated successfully, but these errors were encountered: