RepositoryPythonCNChina
FengheTan9

FengheTan9/U-Bench

[NeurIPS 2026] U-Bench: A Comprehensive Understanding of U-Net through 100-Variant Benchmarking

203stars
26forks
18issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: medical-image-segmentation

#1 Repository of the week

1
TINIX TRENDING·Topic: u-net

#1 Repository of the week

1
TINIX TRENDING·Topic: medical-image-analysis

#1 Repository of the week

U-Bench: A Comprehensive Understanding of U-Net through 100-Variant Benchmarking

Teaser



project arXiv github huggingface huggingface License: Apache2.0

SoTA paper & weights sharing 🤗

🔥🔥🔥 Welcome to share the paper, code and weights through the Issues and Discussions ! 🔥🔥🔥

News

  • 25-10-16. U-Bench Model Zoo weights released [Quick Access] 🎉🎉🎉
  • 25-10-15. U-Bench Data Zoo released [Quick Access] 🎉🎉🎉
  • 25-10-08. U-Bench paper released 🎉🎉🎉

Catalog🚀🚀🚀

Abstract

Over the past decade, U-Net has been the dominant architecture in medical image segmentation, leading to the development of thousands of U-shaped variants. Despite its widespread adoption, a comprehensive benchmark to systematically assess the performance and utility of these models is lacking, primarily due to insufficient statistical validation and limited attention to efficiency and generalization across diverse datasets. To address this gap, we present U-Bench, the first large-scale, statistically rigorous benchmark that evaluates 100 U-Net variants across 28 datasets and 10 imaging modalities. Our contributions are threefold: (1) Comprehensive Evaluation: U-Bench evaluates models along three key dimensions: statistical robustness, zero-shot generalization, and computational efficiency. We introduce a novel metric, U-Score, which jointly captures the performance-efficiency trade-off, offering a deployment-oriented perspective on model progress. (2) Systematic Analysis and Model Selection Guidance: We summarize key findings from the large-scale evaluation and systematically analyze the impact of dataset characteristics and architectural paradigms on model performance. Based on these insights, we propose a model advisor agent to guide researchers in selecting the most suitable models for specific datasets and tasks. (3) Public Availability: We provide all code, models, protocols, and weights, enabling the community to reproduce our results and extend the benchmark with future methods. In summary, U-Bench not only exposes gaps in previous evaluations but also establishes a foundation for fair, reproducible, and practically relevant benchmarking in the next decade of U-Net-based segmentation models.

Anaylsis🧐

Teaser

(2) Significance Analysis

Teaser

(3) Data Characteristics Analysis

Teaser

Quick Start 🤩🤩🤩

Model ZooData Zoo
Code | Weights (Hugging Face)Data (Hugging Face)

1. Installation

git clone https://github.com/FengheTan9/U-Bench.git
cd U-Bench
conda create -n ubench python=3.9 -y  
conda activate ubench  
pip install -r requirements.txt  

For Mamba-based Method:

pip install torch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu117
pip install numpy==1.21.2 opencv-python==4.5.5.64 opencv-python-headless==4.5.5.64
pip install causal_conv1d-1.2.0.post2+cu118torch1.13cxx11abiTRUE-cp38-cp38-linux_x86_64.whl
pip install mamba_ssm-1.2.0.post1+cu118torch1.13cxx11abiFALSE-cp38-cp38-linux_x86_64.whl

2. Datasets

Please put the dataset (e.g. BUSI) or your own dataset as the following architecture:

└── U-Bench
    ├── data
        ├── busi
            ├── images
            |   ├── benign (10).png
            │   ├── malignant (17).png
            │   ├── ...
            |
            └── masks
                ├── 0
                |   ├── benign (10).png
                |   ├── malignant (17).png
                |   ├── ...
        ├── your dataset
            ├── images
            |   ├── 0a7e06.png
            │   ├── ...
            |
            └── masks
                ├── 0
                |   ├── 0a7e06.png
                |   ├── ...
    ├── dataloader
    ├── models
    ├── utils
    ├── script
    ├── main.py
    └── main_multi3d.py

3. Training & Validation

# BUSI (in-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/busi --dataset_name busi
# BUSBRA (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/BUSBRA --dataset_name BUSBRA
# ISIC18 (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/isic18 --dataset_name isic18
# SkinCancer (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/uwaterlooskincancer --dataset_name uwaterlooskincancer
# Kvasir (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/Kvasir-SEG --dataset_name Kvasir-SEG
# CHASE (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/CHASEDB1 --dataset_name CHASEDB1
# DRIVE (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/DRIVE --dataset_name DRIVE
# DSB2018 (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/DSB2018 --dataset_name DSB2018
# GlaS (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/Glas --dataset_name Glas
# Monusac (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/monusac --dataset_name monusac
# Cell (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/cellnuclei --dataset_name cellnuclei
# Convidquex (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/covidquex --dataset_name covidquex
# Montgomery (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/Montgomery --dataset_name Montgomery
# DCA (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/dca1 --dataset_name dca1
# Cystoidfluid (In-domain)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/cystoidfluid --dataset_name cystoidfluid
# Synapse (3D-Slice)
python main_multi3d.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/synapse --dataset_name synapse --num_classes 9 --input_channel 3 --val_interval 100
# ACDC (3D-Slice)
python main_multi3d.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/ACDC--dataset_name ACDC --num_classes 4 --input_channel 3 --val_interval 100

4. In-domain Inference

U-Bench Model Zoo [Quick Access]

# BUSI
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/busi --dataset_name busi --just_for_test True

5. Zero-shot Inference

# BUSI -> BUS (zero-shot)
python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/busi --dataset_name busi --zero_shot_base_dir ./data/bus --zero_shot_dataset_name bus --just_for_zero_shot

5. U-Score calculator

Please refer U-Score calculator

6. Results

Teaser

Teaser

Citation

If using this work (dataset, weights, or benchmark results), please cite:

@article{tang2025u,
  title={U-Bench: A Comprehensive Understanding of U-Net through 100-Variant Benchmarking},
  author={Tang, Fenghe and Dong, Chengqi and Ma, Wenxin and Xu, Zikang and Zhu, Heqin and Jiang, Zihang and Wang, Rongsheng and Wang, Yuhao and Wu, Chenxu and Zhou, Shaohua Kevin},
  journal={arXiv preprint arXiv:2510.07041},
  year={2025}
}

Contact

For questions or collaborations:

⭐ Star this repo if you find it useful!

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
GewelsJI/VPS

Official website for "Video Polyp Segmentation: A Deep Learning Perspective (MIR 2022)"

224
Jan 12, 2026
RepositoryPython
lescientifik/open_brats2020

Top 10 brats 2020 Solution

180
Jul 1, 2021
RepositoryPython
Mengqi-Lei/ConDSeg

[AAAI 2025] Implementation of the paper "ConDSeg: A General Medical Image Segmentation Framework via Contrast-Driven Feature Enhancement".

174
May 25, 2026
RepositoryPython
xmindflow/DAEFormer

[MICCAI 2023] DAE-Former: Dual Attention-guided Efficient Transformer for Medical Image Segmentation

128
Oct 12, 2023
RepositoryPython
anthonyweidai/SvANet

[TNNLS 2026] SvANet: Exploiting Scale-Variant Attention for Segmenting Small Medical Objects

77
Oct 11, 2026
RepositoryPython
FengheTan9/Mobile-U-ViT

[ACM MM 2025] Mobile U-ViT: Revisiting large kernel and U-shaped ViT for efficient medical image segmentation

65
Aug 22, 2026
Repository
whq-xxh/ADA4MIA

Awesome Active Domain Adaptation for Medical Image Analysis

152
Dec 15, 2024
RepositoryJupyter Notebook
RazvanDu/DUCK-Net

Using DUCK-Net for polyp image segmentation. ( Nature Scientific Reports 2023 )

128
Nov 27, 2023
RepositoryPython
zalandoresearch/fashion-mnist

A MNIST-like fashion product database. Benchmark :point_down:

12.9k
Jun 13, 2022