nnU-Net T1 lesion segmentation tool for MRI lesion segmentation
1 min readupdated
An nnU-Net v2 package (a popular framework architecture for biomedical segmentation) with a ready-to-use Python inference script. It takes a 3D T1 MRI scan in NIfTI format as input and outputs a binary lesion mask while preserving original geometry and headers. The model is designed for research tasks in medical image analysis. It is suitable for researchers and developers in medical AI working with neuroimaging.
Key features
- nnU-Net v2 architecture (2D configuration for slice analysis)
- Uses a proven best.pth checkpoint with maximum validation mean patient Dice
- Preserves original geometry, pixel spacing, and input file headers
- Supports GPU execution with an option to force CPU fallback
What you can do
- Run the inference script to process your own 3D T1 MRI NIfTI file
- Set up the environment with PyTorch and nnunetv2 following instructions to test the model on your data
Example
python infer.py --input /path/to/T1.nii.gz --output /path/to/T1_seg.nii.gzRead more
DetailsArchitecture: nnU-Net v2, 2D
Dataset: Dataset602_MS60T1
Validation mean patient Dice: 0.273
Test mean patient Dice: 0.218
Requirements: PyTorch 2.4.1, CUDA 12.4, nnunetv2==2.5.1










Comments