Skip to content

Fix: compute correct IoU in mean_iou metric (#421)#692

Open
UddavGoshika wants to merge 2 commits intohuggingface:mainfrom
UddavGoshika:fix-mean-iou
Open

Fix: compute correct IoU in mean_iou metric (#421)#692
UddavGoshika wants to merge 2 commits intohuggingface:mainfrom
UddavGoshika:fix-mean-iou

Conversation

@UddavGoshika
Copy link

What Changed

  • Fixed the IoU calculation formula to use the correct metric:
    TP / (TP + FP + FN)
  • Previously, it was incorrectly computing recall.

Why This Matters

  • This improves accuracy for segmentation metrics
  • Confirmed working with tests

Closes #421

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

evaluate/metrics/mean_iou computes recall (sensitivity) instead of IoU

1 participant