Segmentation
Mean IoU
Implemented
segmentation.miouDefinition
IoU averaged over classes, with support for ignore_index.
Formula
mIoU = (1/K) Σₖ IoUₖ
Range: [0, 1]
Inputs and outputs
- y_true: ground-truth mask (H×W or N×H×W)
- y_pred: predicted mask with the same shape
- num_classes
- ignore_index
Returns: float
Assumptions
No assumptions beyond valid, aligned inputs of the documented types.
Limitations
No metric-specific limitations are documented yet. Interpret the value alongside the task, data, and other metrics.
Python API
import evalsuite as es
es.miou(y_true, y_pred, ignore_index=255)References
- Long, J., Shelhamer, E., & Darrell, T. (2015). Fully convolutional networks for semantic segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 3431–3440.