FengheTan9 commited on
Commit
36a3d29
Β·
verified Β·
1 Parent(s): bea538e

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.MD +130 -0
  2. data.zip +3 -0
README.MD ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset Usage Declaration
2
+
3
+ ## Data Source and License Statement
4
+
5
+ This dataset is provided for academic research and educational purposes only. We have made our best efforts to comply with relevant laws, regulations, and platform terms of use when collecting and organizing this data.
6
+
7
+ ## Disclaimer
8
+
9
+ 1. **Data Compliance**: We have made every effort to ensure that the uploaded data complies with the terms of use and copyright requirements of various platforms.
10
+
11
+ 2. **Rights Protection**: If you find that this dataset contains content that violates data agreements, infringes copyrights, or violates privacy rights, please contact us immediately.
12
+
13
+ 3. **Rapid Response**: Upon receiving complaints or notifications, we will verify the claims and remove the relevant content within 24 hours after confirmation.
14
+
15
+ ## Contact Information
16
+
17
+ For any questions or removal requests, please contact us through the following channels:
18
+
19
+ - Email: [[email protected]](mailto:[email protected])
20
+ - GitHub Issues: [Open Issue](https://github.com/FengheTan9/U-Bench/issues)
21
+
22
+
23
+ ## Removal Commitment
24
+
25
+ We hereby commit that any content proven to violate data agreements or infringe legitimate rights and interests will be processed and completely removed within 24 hours of receiving valid notification.
26
+
27
+ ## Usage Reminder
28
+
29
+ Users should ensure that their downloading and usage of this dataset complies with relevant laws, regulations, and third-party platform agreements. Legal liabilities arising from the use of this dataset shall be borne by the users themselves.
30
+
31
+ ## Dataset Usage
32
+
33
+ ### 1. Datasets
34
+
35
+ Please put the dataset (e.g. BUSI) or your own dataset as the following architecture:
36
+
37
+ ```
38
+ └── U-Bench
39
+ β”œβ”€β”€ data
40
+ β”œβ”€β”€ busi
41
+ β”œβ”€β”€ images
42
+ | β”œβ”€β”€ benign (10).png
43
+ β”‚ β”œβ”€β”€ malignant (17).png
44
+ β”‚ β”œβ”€β”€ ...
45
+ |
46
+ └── masks
47
+ β”œβ”€β”€ 0
48
+ | β”œβ”€β”€ benign (10).png
49
+ | β”œβ”€β”€ malignant (17).png
50
+ | β”œβ”€β”€ ...
51
+ β”œβ”€β”€ your dataset
52
+ β”œβ”€β”€ images
53
+ | β”œβ”€β”€ 0a7e06.png
54
+ β”‚ β”œβ”€β”€ ...
55
+ |
56
+ └── masks
57
+ β”œβ”€β”€ 0
58
+ | β”œβ”€β”€ 0a7e06.png
59
+ | β”œβ”€β”€ ...
60
+ β”œβ”€β”€ dataloader
61
+ β”œβ”€β”€ models
62
+ β”œβ”€β”€ utils
63
+ β”œβ”€β”€ script
64
+ β”œβ”€β”€ main.py
65
+ └── main_multi3d.py
66
+ ```
67
+
68
+ ### 2. Training & Validation
69
+
70
+ ```python
71
+ # BUSI (in-domain)
72
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/busi --dataset_name busi
73
+ # BUSBRA (In-domain)
74
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/BUSBRA --dataset_name BUSBRA
75
+ # ISIC18 (In-domain)
76
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/isic18 --dataset_name isic18
77
+ # SkinCancer (In-domain)
78
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/uwaterlooskincancer --dataset_name uwaterlooskincancer
79
+ # Kvasir (In-domain)
80
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/Kvasir-SEG --dataset_name Kvasir-SEG
81
+ # CHASE (In-domain)
82
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/CHASEDB1 --dataset_name CHASEDB1
83
+ # DRIVE (In-domain)
84
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/DRIVE --dataset_name DRIVE
85
+ # DSB2018 (In-domain)
86
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/DSB2018 --dataset_name DSB2018
87
+ # GlaS (In-domain)
88
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/Glas --dataset_name Glas
89
+ # Monusac (In-domain)
90
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/monusac --dataset_name monusac
91
+ # Cell (In-domain)
92
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/cellnuclei --dataset_name cellnuclei
93
+ # Convidquex (In-domain)
94
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/covidquex --dataset_name covidquex
95
+ # Montgomery (In-domain)
96
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/Montgomery --dataset_name Montgomery
97
+ # DCA (In-domain)
98
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/dca1 --dataset_name dca1
99
+ # Cystoidfluid (In-domain)
100
+ python main.py --max_epochs 300 --gpu 0 --batch_size 8 --model U_Net --base_dir ./data/cystoidfluid --dataset_name cystoidfluid
101
+ # Synapse (3D-Slice)
102
+ 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
103
+ # ACDC (3D-Slice)
104
+ 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
105
+ ```
106
+
107
+ ### 3. Zero-shot
108
+
109
+ ```python
110
+ # BUSI -> BUS (zero-shot)
111
+ python inference_case.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_test True
112
+ ```
113
+
114
+
115
+ ## Citation
116
+
117
+ If you use this work, please cite:
118
+
119
+ ```
120
+ @article{tang2025u,
121
+ title={U-Bench: A Comprehensive Understanding of U-Net through 100-Variant Benchmarking},
122
+ 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},
123
+ journal={arXiv preprint arXiv:2510.07041},
124
+ year={2025}
125
+ }
126
+ ```
127
+
128
+
129
+ ---
130
+ Last Updated: [Date]
data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ff4591bd5ae85fef2ca31e1db66a3e8da26bb1a3c10404fce49621064666722
3
+ size 7189789251