This repository contains different versions of nnUNet Docker images. Most versions are designed to run standard nnUNet with different configurations.
This special version extends nnUNet v0.4.0 implementation with additional bottleneck features functionality in the inference process. Currently, the bottleneck feature extraction is only implemented for this specific version.
/opt/nnunet_resources/To use different models:
nnUNet_results directory to /opt/nnunet_resources/ in the Docker container/opt/nnunet_resources/
└── nnUNet_results/
└── Dataset[XXX]_[Name]/
└── [your model files]
Additional parameters for nnUNetv2_predict:
--bottleneck_features: Flag to obtain per patch bottleneck features--average_folds_patches_mirrors: Three boolean values to control averaging over folds, patches, and mirrors--bottleneck_features_ext: Extension for bottleneck features (choices: 'npz', 'npy', 'pt', default: 'npz')--no_flip_bottleneck: If set, captured bottleneck features are NOT un-flipped along the same axes used for TTA mirroring before aggregation.# Using pre-packaged Dataset301_CL_Multisite model
nnUNetv2_predict -d Dataset301_CL_Multisite \
-i /path/to/input/data \
-o /path/to/output/predictions \
-f 0 1 2 3 4 \
-tr nnUNetTrainerBlobLossAdam3en4 \
-c 3d_fullres \
-npp 15 \
-nps 15 \
--save_probabilities \
--bottleneck_features
Before running inference:
Example Docker run command:
docker run -v /local/path/to/input:/data/input \
-v /local/path/to/output:/data/output \
-v /local/path/to/nnUNet_results:/opt/nnunet_resources/nnUNet_results \
your-image-name:0.4.0-bottleneck \
nnUNetv2_predict [your-parameters]
To use your own models instead of the pre-packaged Dataset301:
-d parameter to match your dataset number/name-tr parameter to match your trainerFor the complete list of available parameters and their descriptions, use:
nnUNetv2_predict -h
License: CC BY-NC 4.0 (Non-Commercial)
For commercial use, contact: [email protected] Full license: https://github.com/Medical-Image-Analysis-Laboratory/Bench-Explain_DL_Cortical-Lesions/blob/main/LICENSE
Content type
Image
Digest
sha256:811994f38…
Size
17.1 GB
Last updated
4 months ago
docker pull petermcgor/nnunetv2:0.4.0-bottleneck