Intersection over Union (IoU) for Segmentation and Detection
Intersection over union measures how well a predicted region matches the true region: the area they share divided by the area they cover together. For segmentation masks it is computed per class from pixel counts and averaged; for detection boxes it is computed for each matched pair of true and predicted boxes, alongside the generalized IoU that also penalises distance between non-overlapping boxes.
교집합 대 합집합 비율(IoU)은 예측 영역과 실제 영역이 함께 덮는 넓이 가운데 겹치는 넓이의 비율로 둘이 얼마나 잘 맞는지 잽니다. 분할 마스크에서는 화소 수로 범주마다 계산해 평균하고, 검출 상자에서는 짝지어진 실제 상자와 예측 상자마다 계산하며, 겹치지 않는 상자 사이의 거리도 벌점으로 주는 일반화 IoU를 함께 냅니다.
How closely do my model's predicted masks or bounding boxes overlap the ground truth?
모형이 예측한 마스크나 경계 상자가 실제 정답과 얼마나 겹칩니까?
For masks, the method reports IoU and Dice for each class, mean IoU, frequency-weighted IoU, pixel accuracy and per-image mean IoU. For boxes, it reports IoU and generalized IoU for each pair, their mean and median, and the share of pairs above a threshold such as 0.5.
When to use Intersection over Union (IoU) for Segmentation and Detection
- You evaluate an image segmentation model from per-pixel true and predicted labels.
- You evaluate a detector whose predicted boxes are already matched to true boxes.
When to use something else
- Boundary quality of large objects matters more than area: use Boundary IoU for Image Segmentation
- Labels are not spatial and you want a confusion-matrix summary: use Classification Performance Report
Assumptions and requirements
- Each row pairs the true and predicted label of the same pixel, or a true box with its matched prediction
- Box corners are given as x1, y1, x2, y2 with x2 > x1 and y2 > y1
- Void pixels are marked with an ignore label
What the analysis reports
- Per-class IoU and Dice
- Mean, frequency-weighted and per-image IoU
- Per-pair box IoU and generalized IoU
- Share of boxes above the IoU threshold
How to report it
Over [value] pixels and [value] classes, the segmentation reached a mean IoU of [value] (frequency-weighted IoU [value], pixel accuracy [value]).
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn.
독립 계산. scikit-learn 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Intersection over Union (IoU) for Segmentation and Detection on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.