File size: 705 Bytes
91a09bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
language: en
license: mit
tags:
- image-segmentation
- medical-imaging
- pytorch
- unet
datasets:
- Angelou0516/kvasir-seg
---

# FolashadeO/week4

This model is a compact PyTorch U-Net for binary gastrointestinal polyp
segmentation on the Kvasir-SEG dataset.

## Architecture

The network uses a four-level U-Net with convolutional encoder blocks,
a bottleneck, transposed-convolution decoder blocks, skip connections,
and a final `1 x 1` convolution that produces one mask logit channel.

## Loss

Training uses a combined Dice and binary cross-entropy loss. BCE handles
per-pixel classification, while Dice loss directly optimizes mask overlap
and helps with foreground/background class imbalance.