question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In 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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
qubvelcommented, Mar 1, 2019

Ok, I got it. I will add this feature.

1reaction
Tyler-Dcommented, Mar 1, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found