Tensorflow-SegNet icon indicating copy to clipboard operation
Tensorflow-SegNet copied to clipboard

What is IU?

Open johnsrude opened this issue 7 years ago • 2 comments

In model.py what is this line doing exactly?

iu = np.diag(hist) / ((hist.sum(1) + hist.sum(0)) - np.diag(hist))

johnsrude avatar Sep 20 '17 23:09 johnsrude

It computed Intersection over Union. (IoU)

tkuanlun350 avatar Oct 05 '17 01:10 tkuanlun350

@tkuanlun350 in your code ur calculating the IOU using histogram, is it advisable to use histogram over the boundary area overlap. because with you testing i am getting accuracy of 92% and mean IOU 0.74 but when i test using the boundary region overlapping i get an accuracy of 50% and mean IOU 0.23. Can you pls share you thoughts on this

abhigoku10 avatar Jan 24 '18 05:01 abhigoku10