Skip to main content

Image registration network using deformation field

Project description

MultiPropReg: Learning Deformable Image Registration from Optimization: Perspective, Modules, Bilevel Training and Beyond

MultiPropReg is a general purpose library for learning-based tools for alignment/registration, and more generally modelling with deformations.

Pre-trained models

See list of pre-trained models available here.

Training

If you would like to train your own model, you will likely need to customize some of the data-loading code in MultiPropReg/datagenerators.py for your own datasets and data formats. Training data can be in the NII, MGZ, or npz (numpy) format, and it's assumed that each npz file in your data list has a vol parameter, which points to the image data to be registered, and an optional seg variable, which points to a corresponding discrete segmentation (for semi-supervised learning). The training data we provide has been skull removed and affine registered, if you need to process your own data, you can use the tools we provide to do the data processing.

We have defined three training modes:
train_src_arcitecture.py: architecture-search training;
train_src_hyper.py: hyper parameter-search training (without segmentation data);
train_src_hyper_seg.py: hyper parameter-search training (with segmentation data);

Detailed usage instructions can be found in scripts/README.md.

Testing

If you want to test the training results, you can use our example:

python MultiPropReg/scripts/test.py  \
        --model MultiPropReg/models/pretrained_model_epoch400.ckpt \
        --atlas MultiPropReg/data/1yr_t1_atlas.nii  \
        --atlas_seg  /path/to/atlas_seg_file  \
        --image_path MultiPropReg/data/divided_dataset/Test_Affine  \
        --result_save MultiPropReg/output_test_400  \
        --gpu 0
        --hyper_parameters

If you have a dataset with segmented images, you have the option to manually specify the atlas_seg parameter. Additionally, we offer a selection of pre-trained models for a rapid assessment of registration outcomes. Detailed usage instructions can be found in scripts/README.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MultiPropReg-0.1.1.tar.gz (13.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MultiPropReg-0.1.1-py3-none-any.whl (13.3 MB view details)

Uploaded Python 3

File details

Details for the file MultiPropReg-0.1.1.tar.gz.

File metadata

  • Download URL: MultiPropReg-0.1.1.tar.gz
  • Upload date:
  • Size: 13.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for MultiPropReg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 505d9849cf28cf37df50dcdf3370999f3590c671a71bf6e578280ded08c3ab5d
MD5 067cb883a7c59991429b0b7a616f9a5f
BLAKE2b-256 2d3b2853642fb7879bf2a8215ca478e072d5360c0477354b2e476fa8d19ae4a4

See more details on using hashes here.

File details

Details for the file MultiPropReg-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: MultiPropReg-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for MultiPropReg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f00b914adf1581bff219a6d31d7d9b1a6de8e41ec602c25e26dbb4a3e02a3451
MD5 dd82247ec3fe6fb3179b63959e31d531
BLAKE2b-256 1d1b45a0fcbf2baacb3100ae2132a456790046f1248e3b653ac1f2f4143062b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page