Nnunet Breast Mri
Pretrained nnU-Net v2 weights for tissue segmentation on breast dynamic contrast-enhanced MRI (DCE-MRI). The accompanying inference/evaluation code is in code/; the online demo is the Space zhang0319/breast-mri-seg.
Fonte do modelo
- Tipo
- Other
- Tamanho do arquivo
- 782 MB
- Versão
- vCheckpoint final
- Atualizado
- 10 de out. de 2026
- Fonte
- Hugging Face
Descrição da fonte
nnU-Net v2 — Breast DCE-MRI Segmentation Weights
Pretrained nnU-Net v2 weights for tissue segmentation on breast dynamic contrast-enhanced MRI
(DCE-MRI). The accompanying inference/evaluation code is in code/; the online demo is the
Space zhang0319/breast-mri-seg.
Four segmented classes:
| Label value | Class |
|---|---|
| 1 | whole breast |
| 2 | fibroglandular tissue (FGT) |
| 3 | blood vessel |
| 4 | lesion |
Repository layout
tissue/ tissue-study models
region/ region-study models
└── Dataset0XX_.../nnUNetTrainer_750epochs__nnUNetResEncUNetLPlans__3d_fullres/
├── fold_all/checkpoint_final.pth
├── plans.json
├── dataset.json
└── dataset_fingerprint.json
code/ full inference + evaluation package (nnunet-breast-inference)
examples/ de-identified example cases (P0–P3 + ground-truth GT + reference predictions)
Model configuration (must match exactly when loading):
trainer = nnUNetTrainer_750epochs · plans = nnUNetResEncUNetLPlans · configuration = 3d_fullres · fold = all
Quick start (local, GPU recommended)
# 1) Download this repo
hf download zhang0319/nnunet-breast-mri --local-dir ./nnunet-breast-mri
# 2) Install the code package
cd nnunet-breast-mri/code
pip install -e .
# 3) Edit the config: point models_dir at the downloaded weights (which contain tissue/ and
# region/), and source_dir at your raw DCE-MRI (one folder per patient: P0.nii.gz is the
# pre-contrast image, P1/P2/... are post-contrast timepoints).
cp config/inference_template.yaml config/my_site.yaml
# 4) Run inference (you can skip extract-models when the weights are already unpacked)
prepare-inputs --config config/my_site.yaml
run-inference --config config/my_site.yaml
format-outputs --config config/my_site.yaml
build-breast-mask --config config/my_site.yaml
Each input channel is [pre, post, post − pre]. See code/docs/Inference.md for details.
Intended use and limitations
- Intended use: research, reproduction and teaching of breast DCE-MRI segmentation methods.
- Limitations: trained on specific acquisition protocols / populations; performance may drop on other scanners, sequences or populations, and it is sensitive to pre/post misregistration and motion artefacts.
- ⚠️ Not for clinical use: these weights and code are not a medical device and must not be used for clinical diagnosis or any medical decision.
License
The code is Apache-2.0 (see code/LICENSE). By using these weights you acknowledge and accept the
intended-use limitations and disclaimer above.
Fontes
1 fonte
Fontes
1 fonteVerificado 10 de out.
Download files
Artefatos de modelo
5 artefatos
Artefatos de modelo
5 artefatosregion/Dataset003_AllRealSubtractions/nnUNetTrainer_750epochs__nnUNetResEncUNetLPlans__3d_fullres/fold_all/checkpoint_final.pth
pth · 782 MB · SHA-256 0c31c17ffaa9…1c9d · Hugging Face
Download fileregion/Dataset005_FirstPlusRandom/nnUNetTrainer_750epochs__nnUNetResEncUNetLPlans__3d_fullres/fold_all/checkpoint_final.pth
pth · 782 MB · SHA-256 caeb739f2c34…9db4 · Hugging Face
Download filetissue/Dataset003_AllRealSubtractions/nnUNetTrainer_750epochs__nnUNetResEncUNetLPlans__3d_fullres/fold_all/checkpoint_final.pth
pth · 782 MB · SHA-256 58f4480dc508…810b · Hugging Face
Download filetissue/Dataset004_FirstDuplicate/nnUNetTrainer_750epochs__nnUNetResEncUNetLPlans__3d_fullres/fold_all/checkpoint_final.pth
pth · 782 MB · SHA-256 cf30c4356850…ba6e · Hugging Face
Download filetissue/Dataset005_FirstPlusRandom/nnUNetTrainer_750epochs__nnUNetResEncUNetLPlans__3d_fullres/fold_all/checkpoint_final.pth
pth · 782 MB · SHA-256 1f215e624728…cc79 · Hugging Face
Download fileTrechos de fonte
2 trechos
Trechos de fonte
2 trechos--- license: apache-2.0 library_name: nnunetv2 pipeline_tag: image-segmentation tags: - medical-imaging - segmentation - nnu-net - breast - dce-mri - breast-cancer --- # nnU-Net v2 — Breast DCE-MRI Segmentation Weights Pretrained nnU-Net v2 weights for tissue segmentation on breast dynamic contrast-enhanced MRI (DCE-MRI). The accompanying inference/evaluation code is in [`code/`](./code); the online demo is the Space [`zhang0319/breast-mri-seg`](https://huggingface.co/spaces/zhang0319/breast-mri-seg). Four segmented classes: | Label value | Class | |---|---| | 1 | whole breast | | 2 | fibroglandular tissue (FGT) | | 3 | blood vessel | | 4 | lesion | ## Repository layout ``` tissue/ tissue-study models region/ region-study models └── Dataset0XX_.../nnUNetTrainer_750epochs__nnUNetResEncUNetLPlans__3d_fullres/ ├── fold_all/checkpoint_final.pth ├── plans.json ├── dataset.json └── dataset_fingerprint.json code/ full inference + evaluation package (nnunet-breast-inference) examples/ de-identified example cases (P0–P3 + ground-truth GT + reference predictions) ``` Model configuration (must match exactly when loading): `trainer = nnUNetTrainer_750epochs` · `plans = nnUNetResEncUNetLPlans` · `configuration = 3d_fullres` · `fold = all` ## Quick start (local, GPU recommended) ```bash # 1) Download this repo hf download zhang0319/nnunet-breast-mri --local-dir ./nnunet-breast-mri # 2) Install the code package cd nnunet-breast-mri/code pip install -e . # 3) Edit the config: point models_dir at the downloaded weights (which contain tissue/ and # region/), and source_dir at your raw DCE-MRI (one folder per patient: P0.nii.gz is the # pre-contrast image, P1/P2/... are post-contrast timepoints). cp config/inference_template.yaml config/my_site.yaml # 4) Run inference (you can skip extract-models when the weights are already unpacked) prepare-inputs --config config/my_site.yaml run-inference --config config/my_site.yaml format-outputs --config config/my_site.yaml build-breast-mask --config config/my_site.yaml ``` Each input channel is `[pre, post, post − pre]`. See `code/docs/Inference.md` for details. ## Intended use and limitations - **Intended use**: research, reproduction and teaching of breast DCE-MRI segmentation methods. - **Limitations**: trained on specific acquisition protocols / populations; performance may drop on other scanners, seque...
Source context: 0 downloads · 0 likes · Pipeline image-segmentation · Library nnunetv2 · Repo zhang0319/nnunet-breast-mri
