IoU metric
See original GitHub issueIn the docs of iou_score
you state only that predictions are of the shape (B, H, W, C) but you state nothing about the values in predictions. Are those probabilities (let’s say [0.2, 0.1, 0., 0.7]
for one pixel and the case with 4 class) or the one-hot encoded vectors ([0, 0, 0, 1]
for the same pixel and the same number of classes)?
Because the result is not the same.
Let’s say that the ground truth in this example is: [0, 1, 0, 0]
.
In the first case, the intersection is 0.2, but in the second case, it is 0. And 0 is the correct intersection value.
Actually, I’m not sure how to interpret it if those are probabilities …
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
IoU a better detection evaluation metric - Towards Data Science
Intersection over Union (IoU) is used when calculating mAP. It is a number from 0 to 1 that specifies the amount of overlap...
Read more >Intersection over Union (IoU) for object detection
Intersection over Union is an evaluation metric used to measure the accuracy of an object detector on a particular dataset. We often see...
Read more >Intersection over Union (IoU) - Hasty.ai
To define the term, in Machine Learning, IoU means Intersection over Union - a metric used to evaluate Deep Learning algorithms by estimating...
Read more >Intersection Over Union IoU in Object Detection Segmentation
Intersection Over Union (IoU) is a helper metric for evaluating object detection and segmentation model.
Read more >Understanding the IoU Metric in Object Detection - Towards AI
IoU = Area of INTERSECTION /Area of UNION. IoU score ≥0.5 is considered as good. Python Implementation ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, I got it. I will add this feature.
Agree with @ajuric . When training using softmax on multi-classes task (PASCAL VOC for example), I apply argmax to final feature map HWC to get final prediction H*W mask (each cell is the class_id ). And there is no threshold needed actually. Then I compute IOU based on the ground truth mask and prediction mask. I think it will be great if we have both kinds of IOU here.