How rita12321/nndosenet works
nnDoseNet is a radiotherapy dose-prediction framework. Its principal workflow converts and labels DICOM/NIfTI cases, plans and preprocesses datasets, trains cross-validation models, predicts dose maps, and evaluates clinical and image metrics. Separate capabilities include DICOM dose export and gamma analysis, plus model ensembling. The graph emphasizes these documented stages and source-index-supported calls; unsampled subsystems are included where documented, with uncertain connections omitted.
Main entry points: predict_from_raw_data.py Prediction runner · nnDoseTrainer.py Dose trainer · evaluate_predictions.py Dose evaluation · plan_and_preprocess_entrypoints.py Plan entrypoints
Components 24
Dataset preparation
- Format and label
nndosenet/formating_dataset/format_dataset_api.py - Dataset fingerprint
nndosenet/experiment_planning/dataset_fingerprint/fingerprint_extractor.py - Preprocessing
nndosenet/preprocessing/preprocessors/default_preprocessor.py - Resampling
nndosenet/preprocessing/resampling/default_resampling.py
Planning and training
- Experiment planning
nndosenet/experiment_planning/experiment_planners/default_experiment_planner.py - Plan entrypoints
nndosenet/experiment_planning/plan_and_preprocess_entrypoints.py - Dose trainer
nndosenet/training/nnDoseTrainer/nnDoseTrainer.py - Training runner
nndosenet/run/run_training.py - DVH loss
nndosenet/training/loss/DVH_loss.py - Training data loading
nndosenet/training/dataloading/base_data_loader.py
Inference and evaluation
- Prediction runner
nndosenet/inference/predict_from_raw_data.py - Prediction data iterator
nndosenet/inference/data_iterators.py - Sliding-window prediction
nndosenet/inference/sliding_window_prediction.py - Prediction export
nndosenet/inference/export_prediction.py - Dose evaluation
nndosenet/evaluation/evaluate_predictions.py - DICOM evaluation
nndosenet/evaluation/dicom_based_evaluation.py - Gamma analysis
nndosenet/evaluation/gamma_analysis.py - Model ensembling
nndosenet/ensembling/ensemble.py
Medical imaging support
- DICOM conversion
nndosenet/dicom_bridge/dicom2nifti.py - NIfTI to DICOM
nndosenet/dicom_bridge/nifti2dicom_dose.py - Image I/O registry
nndosenet/imageio/reader_writer_registry.py - SimpleITK reader
nndosenet/imageio/simpleitk_reader_writer.py - Plans and labels
nndosenet/utilities/plans_handling/plans_handler.py
Other components
- Researcher
Connections 25
- Researcher → Format and label: provides cases
- Format and label → DICOM conversion: converts DICOM
nndosenet/formating_dataset/format_dataset_api.py - Researcher → Plan entrypoints: requests planning
- Plan entrypoints → Experiment planning: runs planner
nndosenet/experiment_planning/plan_and_preprocess_entrypoints.py - Experiment planning → Dataset fingerprint: analyzes dataset
nndosenet/experiment_planning/experiment_planners/default_experiment_planner.py - Plan entrypoints → Preprocessing: preprocesses cases
- Preprocessing → Resampling: resamples images
nndosenet/preprocessing/preprocessors/default_preprocessor.py - Researcher → Training runner: starts training
- Training runner → Dose trainer: instantiates trainer
nndosenet/run/run_training.py - Dose trainer → Training data loading: loads batches
nndosenet/training/nnDoseTrainer/nnDoseTrainer.py - Dose trainer → DVH loss: computes DVH loss
nndosenet/training/nnDoseTrainer/nnDoseTrainer.py - Dose trainer → Dose evaluation: evaluates validation
nndosenet/training/nnDoseTrainer/nnDoseTrainer.py - Researcher → Prediction runner: requests prediction
- Prediction runner → Prediction data iterator: iterates inputs
nndosenet/inference/predict_from_raw_data.py - Prediction runner → Sliding-window prediction: predicts patches
nndosenet/inference/predict_from_raw_data.py - Prediction runner → Prediction export: exports predictions
nndosenet/inference/predict_from_raw_data.py - Prediction runner → Dose evaluation: computes metrics
nndosenet/inference/predict_from_raw_data.py - Dose evaluation → Image I/O registry: selects reader
nndosenet/evaluation/evaluate_predictions.py - Image I/O registry → SimpleITK reader: registers reader
nndosenet/imageio/reader_writer_registry.py - Prediction runner → Plans and labels: loads plan metadata
nndosenet/inference/predict_from_raw_data.py - Researcher → DICOM evaluation: requests RT analysis
- DICOM evaluation → NIfTI to DICOM: converts dose
nndosenet/evaluation/dicom_based_evaluation.py - DICOM evaluation → Gamma analysis: runs gamma analysis
nndosenet/evaluation/dicom_based_evaluation.py - Researcher → Model ensembling: combines models
- Model ensembling → Dose evaluation: evaluates ensemble
nndosenet/ensembling/ensemble.py