Image Segmentation
code
medical
FengheTan9 commited on
Commit
5108e83
Β·
verified Β·
1 Parent(s): d5f8db5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +106 -3
README.md CHANGED
@@ -1,3 +1,106 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Model Zoo of U-Bench: : A Comprehensive Understanding of U-Net through 100-Variant Benchmarking
2
+
3
+ We provide the **training weights of 100 U-Net variants** on **20 in-domain medical image segmentation datasets**. 🫑
4
+
5
+ ## Abstract
6
+
7
+ 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.
8
+
9
+ ## Quick Inference
10
+
11
+ ### Dataset Usage
12
+
13
+ Please put the [Dataset Access](https://huggingface.co/datasets/FengheTan9/U-Bench) or your own dataset as the following architecture:
14
+
15
+ ```
16
+ └── U-Bench
17
+ β”œβ”€β”€ data
18
+ β”œβ”€β”€ busi
19
+ β”œβ”€β”€ images
20
+ | β”œβ”€β”€ benign (10).png
21
+ β”‚ β”œβ”€β”€ malignant (17).png
22
+ β”‚ β”œβ”€β”€ ...
23
+ |
24
+ └── masks
25
+ β”œβ”€β”€ 0
26
+ | β”œβ”€β”€ benign (10).png
27
+ | β”œβ”€β”€ malignant (17).png
28
+ | β”œβ”€β”€ ...
29
+ β”œβ”€β”€ your dataset
30
+ β”œβ”€β”€ images
31
+ | β”œβ”€β”€ 0a7e06.png
32
+ β”‚ β”œβ”€β”€ ...
33
+ |
34
+ └── masks
35
+ β”œβ”€β”€ 0
36
+ | β”œβ”€β”€ 0a7e06.png
37
+ | β”œβ”€β”€ ...
38
+ β”œβ”€β”€ dataloader
39
+ β”œβ”€β”€ models
40
+ β”œβ”€β”€ utils
41
+ β”œβ”€β”€ script
42
+ β”œβ”€β”€ main.py
43
+ └── main_multi3d.py
44
+ ```
45
+
46
+
47
+
48
+ #### Inference:
49
+
50
+ ```python
51
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/busi --dataset_name busi --zero_shot_base_dir ./data/bus --zero_shot_dataset_name bus
52
+
53
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/BUSBRA --dataset_name BUSBRA --zero_shot_base_dir ./data/bus --zero_shot_dataset_name bus
54
+
55
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/tuscui --dataset_name tuscui --zero_shot_base_dir ./data/TUCC-test/malignant --zero_shot_dataset_name malignant
56
+
57
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/isic18 --dataset_name isic18 --zero_shot_base_dir ./data/PH2-test --zero_shot_dataset_name PH2-test
58
+
59
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/uwaterlooskincancer --dataset_name uwaterlooskincancer
60
+
61
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/Kvasir-SEG --dataset_name Kvasir-SEG --zero_shot_base_dir ./data/Kvasir-test --zero_shot_dataset_name cvc300 --val_file_dir CVC-300val.txt
62
+
63
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --dataset_name CHASEDB1 --base_dir ./data/CHASEDB1 --zero_shot_dataset_name DRIVE --zero_shot_base_dir ./data/DRIVE
64
+
65
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/DRIVE --dataset_name DRIVE --zero_shot_base_dir ./data/CHASEDB1 --zero_shot_dataset_name CHASEDB1
66
+
67
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/DSB2018 --dataset_name DSB2018 --zero_shot_base_dir ./data/MonuSeg2018-test --zero_shot_dataset_name MonuSeg2018-test
68
+
69
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/Glas --dataset_name Glas
70
+
71
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/monusac --dataset_name monusac
72
+
73
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/cellnuclei --dataset_name cellnuclei
74
+
75
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/covidquex --dataset_name covidquex --zero_shot_base_dir ./data/mosmedplus --zero_shot_dataset_name mosmedplus
76
+
77
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/Montgomery --dataset_name Montgomery --zero_shot_base_dir ./data/NIH-test --zero_shot_dataset_name NIH-test
78
+
79
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/dca1 --dataset_name dca1
80
+
81
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --just_for_test True --model U_Net --base_dir ./data/cystoidfluid --dataset_name cystoidfluid
82
+ ```
83
+
84
+
85
+
86
+ ## Citation
87
+
88
+ If using this work (**dataset, weights, or benchmark results**), please cite:
89
+
90
+ ```
91
+ @article{tang2025u,
92
+ title={U-Bench: A Comprehensive Understanding of U-Net through 100-Variant Benchmarking},
93
+ 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},
94
+ journal={arXiv preprint arXiv:2510.07041},
95
+ year={2025}
96
+ }
97
+ ```
98
+
99
+ ---
100
+ license: apache-2.0
101
+ datasets:
102
+ - FengheTan9/U-Bench
103
+ tags:
104
+ - medical
105
+ - code
106
+ ---