How yazdansalimi/organ-segmentation works
Organ-Segmentation is a Python tool for deep-learning multi-organ segmentation of NIfTI images, using nnU-Net models selected by imaging modality. The main workflow accepts images and options, optionally validates and splits large images, selects trained models, runs inference, and restores segmentations to the original image dimensions. The README also documents CT and PET model families and modality-specific input requirements. The graph follows the sampled inference code; model-family internals and some image-processing details are not shown.
Main entry points: predict_multi.py Batch inference API · ImageUtitlities.py nnU-Net prediction
Components 11
Inference workflow
- Batch inference API
organsegment/predict_multi.py - Input validation
organsegment/predict_multi.py - Modality model selection
organsegment/predict_multi.py
Segmentation runtime
- nnU-Net prediction
organsegment/ImageUtitlities.py
Image handling
- Large-image splitting
organsegment/ImageUtitlities.py - Inference staging
organsegment/ImageUtitlities.py - Segmentation files
organsegment/ImageUtitlities.py - Segmentation reassembly
organsegment/ImageUtitlities.py
Other components
- Operator
- NIfTI images
- Trained nnU-Net models
Connections 11
- Operator → Batch inference API: configures
- NIfTI images → Batch inference API: submits
- Batch inference API → Input validation: validates
organsegment/predict_multi.py - Batch inference API → Large-image splitting: splits images
organsegment/predict_multi.py - Batch inference API → Modality model selection: selects models
organsegment/predict_multi.py - Modality model selection → Trained nnU-Net models: finds model folders
organsegment/predict_multi.py - Batch inference API → Inference staging: stages inference
organsegment/predict_multi.py - Inference staging → nnU-Net prediction: calls predictor
organsegment/ImageUtitlities.py - nnU-Net prediction → Segmentation files: writes segments
organsegment/ImageUtitlities.py - Batch inference API → Segmentation reassembly: reassembles
organsegment/predict_multi.py - Segmentation reassembly → Segmentation files: restores dimensions
organsegment/ImageUtitlities.py