Machine Learning, Deep Learning, Image Segmentation, Keras, Biomedical Imaging.
Dice Coefficient value will be zero in such cases. Dice loss is a bit different one which works for image segmentation task mainly defined as negative of Dice coefficient. See below for the Dice coefficient formula. Here X is the ground truth mask and Y is the predicted mask. For measuring dice