mIoU (mean intersection over union) is an evaluation metric for semantic segmentation, which assigns a class to every pixel of an image, that computes the overlap (IoU) between the predicted region and the ground-truth region for each class and averages it over classes. It ranges from 0 to 1, and values closer to 1 mean closer agreement with the ground-truth regions. Papers usually multiply it by 100 and write it as a percentage.
is the number of pixels that are class in both the ground truth and the prediction, the number that are class only in the prediction, and the number that are class only in the ground truth. The numerator is the area of the intersection of the two regions and the denominator the area of their union, so IoU is "the fraction of overlap". It is also called the Jaccard index.
mIoU became the official metric of the PASCAL VOC segmentation task in 2008. The earlier VOC2007 used, for each class, "the fraction of ground-truth pixels predicted correctly", which had the flaw that labeling every pixel as "car" would give the car class a perfect score. The challenge therefore switched to IoU, which also penalizes pixels that are that class only in the prediction (FP). The FCN paper also reported this metric under the name mean IU, and it remains the main metric for segmentation today.

