Datasets:
Tasks:
Image Segmentation
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
1K - 10K
License:
Update README: document BraTS nested-by-volume layout
Browse files
README.md
CHANGED
|
@@ -52,9 +52,17 @@ MedSeg-7D/
|
|
| 52 |
│ └── split_info.json CANONICAL patient-level split (seed=42, 80/20)
|
| 53 |
│
|
| 54 |
├── BraTS2020/ (brain MRI FLAIR, 369 volumes → 22677 slices)
|
| 55 |
-
│ ├── images/
|
| 56 |
-
│ ├──
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
│ └── split_info.json CANONICAL volume-level split (seed=42, 295/74)
|
|
|
|
|
|
|
|
|
|
| 58 |
│
|
| 59 |
├── BUSI/ (breast ultrasound, 780 images)
|
| 60 |
│ ├── images/
|
|
@@ -215,9 +223,13 @@ info = json.load(open(os.path.join(ROOT, "ACDC", "split_info.json")))
|
|
| 215 |
train_patients = set(info["train_patients"])
|
| 216 |
# enumerate slices, check patient ID in filename to assign train/test
|
| 217 |
|
| 218 |
-
# BraTS (volume-level) —
|
| 219 |
info = json.load(open(os.path.join(ROOT, "BraTS2020", "split_info.json")))
|
| 220 |
train_volumes = set(info["train_patients"]) # key name retained from original
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
|
| 222 |
# CVC (video-level — recommended) or image-level (legacy)
|
| 223 |
info = json.load(open(os.path.join(ROOT, "CVC-ClinicDB", "video_split_seed42.json")))
|
|
|
|
| 52 |
│ └── split_info.json CANONICAL patient-level split (seed=42, 80/20)
|
| 53 |
│
|
| 54 |
├── BraTS2020/ (brain MRI FLAIR, 369 volumes → 22677 slices)
|
| 55 |
+
│ ├── images/
|
| 56 |
+
│ │ ├── volume_1/ volume_1_slice_<s>.png (FLAIR channel, ~50-80 slices/vol)
|
| 57 |
+
│ │ ├── volume_2/
|
| 58 |
+
│ │ └── ... (369 vols)
|
| 59 |
+
│ ├── masks/
|
| 60 |
+
│ │ ├── volume_1/ matching whole-tumor binary mask
|
| 61 |
+
│ │ └── ... (369 vols)
|
| 62 |
│ └── split_info.json CANONICAL volume-level split (seed=42, 295/74)
|
| 63 |
+
│ # NOTE: BraTS slices are nested into per-volume subdirectories because of
|
| 64 |
+
│ # HuggingFace's 10000 files-per-directory limit. Filenames preserve the
|
| 65 |
+
│ # original volume_X_slice_Y.png convention.
|
| 66 |
│
|
| 67 |
├── BUSI/ (breast ultrasound, 780 images)
|
| 68 |
│ ├── images/
|
|
|
|
| 223 |
train_patients = set(info["train_patients"])
|
| 224 |
# enumerate slices, check patient ID in filename to assign train/test
|
| 225 |
|
| 226 |
+
# BraTS (volume-level) — slices are nested under per-volume subdirs
|
| 227 |
info = json.load(open(os.path.join(ROOT, "BraTS2020", "split_info.json")))
|
| 228 |
train_volumes = set(info["train_patients"]) # key name retained from original
|
| 229 |
+
# To enumerate all training slices:
|
| 230 |
+
# for vol in train_volumes:
|
| 231 |
+
# for img_path in glob.glob(f"{ROOT}/BraTS2020/images/{vol}/*.png"):
|
| 232 |
+
# ...
|
| 233 |
|
| 234 |
# CVC (video-level — recommended) or image-level (legacy)
|
| 235 |
info = json.load(open(os.path.join(ROOT, "CVC-ClinicDB", "video_split_seed42.json")))
|