Skip to content
Discussion options

You must be logged in to vote

Thanks for your question! Although MeanIoU and BinaryJaccardIndex are mathematically related (both based on the Jaccard index), they may differ slightly in practice due to implementation details.
Key points to consider:

  • MeanIoU in torchmetrics computes the Intersection-over-Union per class and averages over classes. It has options to include or exclude the background class.
  • BinaryJaccardIndex is designed for binary classification and computes the Jaccard similarity (IoU) directly on the binary outputs.
  • Differences can arise if your inputs are formatted differently or if the metrics apply different thresholds or reduction strategies.
  • Also, MeanIoU expects integer class labels, while Binar…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Borda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants