Datasets:
dataset stringclasses 2
values | model_snapshot stringclasses 1
value | mean_dice float64 0.21 0.22 | mean_iou float64 0.12 0.13 | n_evals int64 2 2 | direct_matching_training_rows int64 14 16 | prompt stringclasses 2
values |
|---|---|---|---|---|---|---|
DRIVE | balanced_finish | 0.212233 | 0.118717 | 2 | 14 | Retinal Blood Vessel |
RAVIR Dataset | balanced_finish | 0.224709 | 0.128455 | 2 | 16 | retinal artery and vein |
SAM3 low-Dice 2D datasets for nnU-Net
Private research export of two small 2D datasets on which the balanced-finish SAM3 LoRA validation Dice was below 0.5. The purpose is to test whether a dataset-specific nnU-Net can fit these data and to distinguish data/training limitations from inference bugs.
| Dataset | SAM3 Dice | SAM3 IoU | Evaluated validation images | Actual SAM3 training images |
|---|---|---|---|---|
| DRIVE | 0.212233 | 0.118717 | 2 | 14 |
| RAVIR | 0.224709 | 0.128455 | 2 | 16 |
The two-image validation estimates are noisy. They are useful failure cases, not stable benchmark estimates.
Ready-to-train directories
nnUNet_raw/Dataset501_DRIVE: 20 labeled RGB images.nnUNet_raw/Dataset502_RAVIRBinaryClean: 22 labeled RGB images. The exact duplicateIR_Case_011is excluded from this training view.source_rgb_gt: all labeled source RGB images and binary GT masks, including all 23 RAVIR cases.previews: input / binary GT / red GT-overlay contact images.metadata: evaluation numbers, export summary, and data-quality findings.
Each nnU-Net RGB image is represented by three grayscale PNG channels named
case_0000.png, case_0001.png, and case_0002.png. Labels are uint8 PNGs
with values {0, 1}. The dataset JSON explicitly selects NaturalImage2DIO.
Example:
hf download MedicalSAM3/sam3-low-dice-2d-nnunet \
--repo-type dataset \
--local-dir sam3-low-dice-2d-nnunet
export nnUNet_raw="$PWD/sam3-low-dice-2d-nnunet/nnUNet_raw"
export nnUNet_preprocessed="$PWD/nnUNet_preprocessed"
export nnUNet_results="$PWD/nnUNet_results"
nnUNetv2_plan_and_preprocess -d 501 --verify_dataset_integrity
nnUNetv2_train 501 2d 0
nnUNetv2_plan_and_preprocess -d 502 --verify_dataset_integrity
nnUNetv2_train 502 2d 0
Label definition and SAM3 split
Both tasks are binary to match the SAM3 evaluation target:
- DRIVE: background vs retinal blood vessel.
- RAVIR: background vs artery-or-vein union. The original artery/vein class
distinction is intentionally collapsed because SAM3 used the union prompt
retinal artery and vein.
sam3_split.json records the exact images seen as SAM3 train and validation
examples. The nnU-Net directories contain all usable official labeled cases so
nnU-Net can make its own folds; use the recorded split when an exactly matched
train-set memorization check is desired.
Data-quality flag
RAVIR IR_Case_011 and IR_Case_022 have byte-identical RGB pixels but
different masks. Their binary-mask Dice is 0.868058 (21,199 pixels differ).
IR_Case_011 was not used by the SAM3 training split, while IR_Case_022 was.
The source view keeps both; the default clean nnU-Net view excludes 011 to
avoid training one image against conflicting labels.
This export is for private research use. Consult the original DRIVE and RAVIR dataset terms before redistributing it or making this repository public.
- Downloads last month
- 19