Pretrained weights¶
Checkpoints are hosted on Google Drive and registered by name in MIR.ModelWeights. Each entry gives
the Drive file id (wts) and the key under which the state dict is stored (wts_key).
Loading a checkpoint¶
import gdown, torch
from MIR import ModelWeights
entry = ModelWeights['TransMorphTVF-LUMIR24-MonoModal']
gdown.download(f"https://drive.google.com/uc?id={entry['wts']}", 'TransMorphTVF_LUMIR24.pth.tar')
model.load_state_dict(torch.load('TransMorphTVF_LUMIR24.pth.tar')[entry['wts_key']])
To initialize a modified architecture from a checkpoint, load only the tensors whose names and shapes match:
from MIR.utils import load_partial_weights
load_partial_weights(model, 'TransMorphTVF_LUMIR24.pth.tar', weights_key='state_dict')
Available checkpoints¶
|
Model |
Trained on |
|---|---|---|
|
TransMorph-TVF |
LUMIR24 brain T1w MRI, inter-subject (Learn2Reg 2024) |
|
VFA |
LUMIR24 brain T1w MRI (key |
|
VFA |
LUMIR25 brain MRI, multiple contrasts (Learn2Reg 2025) |
|
TransMorph |
IXI brain MRI, atlas-to-subject |
|
TransMorph-TVF |
IXI brain MRI, atlas-to-subject |
|
VFA |
IXI brain MRI, atlas-to-subject |
|
VFA-SPR |
IXI brain MRI, atlas-to-subject |
|
SITReg |
IXI brain MRI, atlas-to-subject |
|
SITReg-SPR |
IXI brain MRI, atlas-to-subject |
|
TransMorph-TVF-SPR, Beta prior |
autoPET whole-body PET/CT, atlas-to-subject (MedIA 2025) |
|
TransMorph-TVF-SPR, Gaussian prior |
autoPET whole-body PET/CT, atlas-to-subject (MedIA 2025) |
|
VFA segmentation head |
VFA features for segmentation |
|
VFA synthesis head |
VFA features for image synthesis |
Datasets and atlases¶
MIR.DatasetJSONs holds the dataset split files of LUMIR24 and LUMIR25, MIR.ValEvalModules the
official validation-evaluation modules, and MIR.pretrained_wts.FDG_atlas_autoPET an FDG PET/CT atlas
built from autoPET (CT, SUV, organ probability and label atlases, 2.8 x 2.8 x 3.8 mm, sex-specific
variants).