In image segmentation, we want to know how well the model separates different parts of an image. The key metrics are Intersection over Union (IoU) and Dice coefficient. They measure how much the predicted area overlaps with the true area.
IoU is the size of the overlap divided by the size of the union of predicted and true areas. Dice is similar but gives more weight to overlap. These metrics help us understand if the model is correctly identifying the shapes and boundaries.
