Angelou0516/kvasir-seg
Viewer • Updated • 1k • 936
This repository contains a U-Net model trained for gastrointestinal polyp segmentation on the Angelou0516/kvasir-seg dataset.
Input shape:
3 x 256 x 256Output shape:
1 x 256 x 256Medical image segmentation suffers from severe class imbalance because the foreground object occupies a small region of the image while the background dominates most pixels.
To address this, the model was trained with a combined loss:
Final loss:
0.5 * BCEWithLogitsLoss + 0.5 * DiceLoss256 x 256[-1, 1]{0, 1}