Skip to content
ModelListedExternal
Download

Kvasir Unet

Standard U-Net architecture (Ronneberger et al., 2015) for binary medical image segmentation.

KindOtherVersionRevision 9f20004

Model source

Kind
Other
File size
118 MB
Version
vRevision 9f20004
Updated
Sep 27, 2026
Downloads
0
Tasks
Image segmentation
Source
Hugging Face

Source description

UNet for Kvasir-SEG Polyp Segmentation

Architecture

Standard U-Net architecture (Ronneberger et al., 2015) for binary medical image segmentation.

  • Encoder: 4 downsampling stages (3→64→128→256→512) with double convolution blocks and max pooling
  • Bottleneck: 512→1024 channels at the lowest spatial resolution
  • Decoder: 4 upsampling stages using transposed convolutions with skip connections from the encoder
  • Output: 1×1 convolution producing a single-channel binary segmentation mask

Input: (B, 3, 256, 256) RGB images → Output: (B, 1, 256, 256) segmentation logits

Loss Function

Combined BCE + Dice Loss to address class imbalance:

  • BCE (Binary Cross-Entropy): Handles pixel-level binary classification
  • Dice Loss: Directly optimizes the overlap between predicted and ground-truth masks, counteracting the dominance of background pixels in medical images

Dataset

Trained on Kvasir-SEG — gastrointestinal polyp segmentation dataset.

References

Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. MICCAI 2015.

Sources

1 source
Hugging FacePrimaryVersion 9f2000464c8960e9367db54beec8d68fd32fc07a
huggingface.co/JakubbBlaszczykk/kvasir-unet/tree/9f2000464c8960e9367db54beec8d68fd32fc07a

Verified Sep 27

Model artifacts

1 artifact

model.safetensors

safetensors · 118 MB · SHA-256 cbdd2be1ab42…d540 · Hugging Face

Download

Source excerpts

2 excerpts

--- tags: - pytorch - image-segmentation - unet - medical-imaging datasets: - Angelou0516/kvasir-seg --- # UNet for Kvasir-SEG Polyp Segmentation ## Architecture Standard U-Net architecture (Ronneberger et al., 2015) for binary medical image segmentation. - **Encoder**: 4 downsampling stages (3→64→128→256→512) with double convolution blocks and max pooling - **Bottleneck**: 512→1024 channels at the lowest spatial resolution - **Decoder**: 4 upsampling stages using transposed convolutions with skip connections from the encoder - **Output**: 1×1 convolution producing a single-channel binary segmentation mask Input: `(B, 3, 256, 256)` RGB images → Output: `(B, 1, 256, 256)` segmentation logits ## Loss Function **Combined BCE + Dice Loss** to address class imbalance: - **BCE (Binary Cross-Entropy)**: Handles pixel-level binary classification - **Dice Loss**: Directly optimizes the overlap between predicted and ground-truth masks, counteracting the dominance of background pixels in medical images ## Dataset Trained on [Kvasir-SEG](https://huggingface.co/datasets/Angelou0516/kvasir-seg) — gastrointestinal polyp segmentation dataset. ## References Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. MICCAI 2015.

Source context: 0 downloads · 0 likes · Pipeline image-segmentation · Repo JakubbBlaszczykk/kvasir-unet