- Colab Link Click Here
- Dataset Used: Butterfly Dataset
This repository explores the task of image segmentation using SAM by finetuning it on butterfly dataset.
Dice loss is a metric used in image segmentation models. It measures the similarity between the predicted and actual segmentation masks by calculating the intersection over the union (IoU) of the two masks. The Dice coefficient, derived from this loss, ranges from 0 (no overlap) to 1 (perfect overlap). This loss is particularly useful for tasks like object detection or medical image segmentation, where precise delineation of objects is crucial. It encourages the model to produce accurate, pixel-level segmentations by penalizing false positives and false negatives. Minimizing Dice loss leads to better segmentation results in tasks like identifying objects in images.