Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does one not use IOU for training?

When people try to solve the task of semantic segmentation with CNN's they usually use a softmax-crossentropy loss during training (see Fully conv. - Long). But when it comes to comparing the performance of different approaches measures like intersection-over-union are reported.

My question is why don't people train directly on the measure they want to optimize? Seems odd to me to train on some measure during training, but evaluate on another measure for benchmarks.

I can see that the IOU has problems for training samples, where the class is not present (union=0 and intersection=0 => division zero by zero). But when I can ensure that every sample of my ground truth contains all classes, is there another reason for not using this measure?

like image 686
zimmermc Avatar asked Nov 07 '16 21:11

zimmermc


People also ask

Is IoU a loss function?

When using this approximation, IoU becomes differentiable and can be used as a loss function. The comparison between IoU loss and Binary Cross Entropy loss is made by testing two deep neural network models on multiple datasets and data splits.

What is IoU in deep learning?

To define the term, in Machine Learning, IoU means Intersection over Union - a metric used to evaluate Deep Learning algorithms by estimating how well a predicted mask or bounding box matches the ground truth data.

What is a good IoU?

One such measure of similarity is the Jaccard index or in the colloquial language of computer vision, we refer it as intersection over the union. IoU = Area of INTERSECTION /Area of UNION. IoU score ≥0.5 is considered as good.

What is the correct range of IoU score?

As the IoU can range from 0 to 1, it is usually expressed as a percent, however the intuition behind what an IoU score means in terms of visual error is not intuitive (to me atleast).


1 Answers

Checkout this paper where they come up with a way to make the concept of IoU differentiable. I implemented their solution with amazing results!

like image 176
mathetes Avatar answered Sep 22 '22 13:09

mathetes