Dice Metric Sanity Test

I tried checking the dice function on a single mask with itself and it’s not returning the expected value 1.0. Please let me know if I’m missing something? You can see the output below. Thanks!

1 Like

It’s not clear to me that fastai implements the dice and iou metrics the way they are defined…

dice = \frac{2(TP)}{2(TP) + FP + FN}

iou = \frac{ intersection}{union}

1 Like