How andreasainz/multi-task-learning works
This repository implements research workflows for multi-task learning on CT reconstruction, using synthetic digit images and learned priors to reconstruct images from noisy projections. An experiment loads batches, runs iterative reconstruction with SIRT and optional learned regularization, then evaluates and visualizes results. Separate model-training workflows support classifiers, denoisers, normalizing flows, and other priors. The graph emphasizes the documented reconstruction and model capabilities; some links are dashed where the available excerpts do not show the runtime dispatch or result-saving details.
Main entry points: gradients.py Prior updates · pipelines Experiment workflows · pipelines.py Reconstruction loop · training Model training
Components 18
Data and CT
- CT digit dataset
code/dataloader/data_loader.py - Data import
code/dataloader/data_import.py - CT operator
code/ct_recon/operators.py - Noisy projections
code/dataloader/data_loader.py
Reconstruction
- Experiment workflows
experiments/pipelines - Reconstruction loop
code/pipelines/pipelines.py - Prior updates
code/utils/gradients.py - SIRT solver
code/ct_recon/SIRT.py - Image crops
code/utils/image_cropping.py
Learned models
- Classifier
code/models/classifier.py - Denoiser
code/models/denoiser.py - Normalizing flow
code/models/normalizing_flow.py - Score model
code/models/score_unet.py
Training
- Model training
code/training
Evaluation and output
- Image metrics
code/utils/metrics.py - Result plots
code/utils/plots.py - Experiment logging
code/utils/logger.py
Other components
- Researcher
Connections 22
- Researcher → Experiment workflows: runs experiments
- Experiment workflows → CT digit dataset: loads batches
experiments/pipelines/pipeline_NFs_trial_1styearreport.py - Experiment workflows → Reconstruction loop: calls reconstruction
experiments/pipelines/task0_only_gradients/bayes.py - CT digit dataset → Noisy projections: generates projections
code/dataloader/data_loader.py - Data import → CT digit dataset: wraps dataset
code/dataloader/data_import.py - Experiment workflows → CT operator: configures geometry
experiments/pipelines/pipeline_NFs_trial_1styearreport.py - Reconstruction loop → Prior updates: requests updates
code/pipelines/pipelines.py - Reconstruction loop → SIRT solver: takes SIRT steps
code/pipelines/pipelines.py - Reconstruction loop → Image crops: extracts crops
code/pipelines/pipelines.py - Reconstruction loop → Image metrics: computes scores
code/pipelines/pipelines.py - Prior updates → SIRT solver: applies SIRT step
code/utils/gradients.py - Prior updates → Image crops: uses crop utilities
code/utils/gradients.py - Prior updates → Classifier: dispatches prior
- Prior updates → Denoiser: dispatches prior
- Prior updates → Normalizing flow: dispatches prior
- Prior updates → Score model: dispatches prior
- Model training → Classifier: trains model
code/training/training.py - Model training → Denoiser: trains model
code/training/training.py - Model training → CT digit dataset: loads training data
code/training/training_normalizingflows.py - Model training → Image metrics: evaluates models
code/training/training_normalizingflows.py - Experiment workflows → Result plots: produces plots
experiments/pipelines/pipeline_NFs_trial_1styearreport.py - Experiment workflows → Experiment logging: configures logging
experiments/pipelines/pipeline_NFs_trial_1styearreport.py