File size: 5,218 Bytes
137805f | 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | # MedSegDB Data Structure
When using the data for pre-training and ID evaluation, please organize them in the following structure:
```
playground/
βββ MedSegDB/
βββ ID/
βββ dataset1/
β βββ modality_task1/
β β βββ npy_imgs/ # preprocessed images in .npy format
β β βββ npy_gts/ # corresponding ground truth labels
β βββ modality_task2/
β β βββ npy_imgs/
β β βββ npy_gts/
β βββ ... # other modality-task pairs
βββ dataset2/
β βββ modality_task1/
β β βββ sequence1/ # if multiple sequences exist
β β β βββ npy_imgs/
β β β βββ npy_gts/
β β βββ sequence2/
β β β βββ npy_imgs/
β β β βββ npy_gts/
β β βββ ... # other sequences if available
β βββ ... # other modality-task pairs
βββ ... # other datasets
```
For example,
```
playground/
βββ MedSegDB/
βββ ID/
βββ ACDC/
β βββ MRI_LeftVentricle/
β β βββ npy_imgs/
β β βββ npy_gts/
β βββ MRI_MitralValve/
β β βββ npy_imgs/
β β βββ npy_gts/
β βββ ... # other modality-task pairs
βββ BraTS2020/
β βββ MRI_BrainCoreTumor/
β β βββ FLAIR/
β β β βββ npy_imgs/
β β β βββ npy_gts/
β β βββ T1/
β β β βββ npy_imgs/
β β β βββ npy_gts/
β β βββ ... # other sequences
β βββ ... # other modality-task pairs
βββ ... # other datasets
```
When using the data for OOD (or real-world) evaluation, please organize them in the following structure:
```
playground/
βββ MedSegDB/
βββ OOD/
βββ cross_site/ # cross-site shift
β βββ modality_task1/
β β βββ dataset1/
β β β βββ finetune/ # fine-tune data
β β β β βββ npy_imgs/
β β β β βββ npy_gts/
β β β βββ inference/ # inference data
β β β βββ npy_imgs/
β β β βββ npy_gts/
β β βββ dataset2/
β β βββ ... # other datasets
β βββ modality_task2/
β β βββ dataset1/
β β β βββ sequence1/ # if multiple sequences exist
β β β β βββ finetune/
β β β β β βββ npy_imgs/
β β β β β βββ npy_gts/
β β β β βββ inference/
β β β β βββ npy_imgs/
β β β β βββ npy_gts/
β β β βββ sequence2/
β β β βββ ... # other sequences if available
β β βββ dataset2/
β β βββ ... # other datasets
β βββ ... # other modality-task pairs
βββ cross_task/ # cross-task shift
```
For example,
```
playground/
βββ MedSegDB/
βββ OOD/
βββ cross_site/
β βββ CT_Liver/
β β βββ SLIVER07/
β β β βββ finetune/
β β β β βββ npy_imgs/
β β β β βββ npy_gts/
β β β βββ inference/
β β β βββ npy_imgs/
β β β βββ npy_gts/
β β βββ ... # other datasets
β βββ MRI_Spleen/
β β βββ CHAOS/
β β β βββ T2W/
β β β β βββ finetune/
β β β β β βββ npy_imgs/
β β β β β βββ npy_gts/
β β β β βββ inference/
β β β β βββ npy_imgs/
β β β β βββ npy_gts/
β β β βββ ... # other sequences
β β βββ ... # other datasets
β βββ ... # other modality-task pairs
βββ cross_task/
``` |