How to compute the mean IU (mean Intersection over Union) score as in this paper?
Long, Jonathan, Evan Shelhamer, and Trevor Darrell. "Fully Convolutional Networks for Semantic Segmentation."
For each class Intersection over Union (IU) score is:
true positive / (true positive + false positive + false negative)
The mean IU is simply the average over all classes.
Regarding the notation in the paper:
n_ij : the number of pixels of class i predicted to belong to class j. So for class i:
You can find the matlab code to compute this directly in the Pascak DevKit here