MultiPropReg


NameMultiPropReg JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/Co-Yonaka/MultiPropReg
SummaryImage registration network using deformation field
upload_time2023-11-02 04:06:56
maintainer
docs_urlNone
author
requires_python>=3.5.5
licenseMIT
keywords deformation registration imaging mri
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](models/pretrained_model_epoch400.ckpt).

## 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.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Co-Yonaka/MultiPropReg",
    "name": "MultiPropReg",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5.5",
    "maintainer_email": "",
    "keywords": "deformation,registration,imaging,mri",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/2d/3b/2853642fb7879bf2a8215ca478e072d5360c0477354b2e476fa8d19ae4a4/MultiPropReg-0.1.1.tar.gz",
    "platform": null,
    "description": "# MultiPropReg: Learning Deformable Image Registration from Optimization: Perspective, Modules, Bilevel Training and Beyond\n\n**MultiPropReg** is a general purpose library for learning-based tools for alignment/registration, and more generally modelling with deformations.\n\n\n\n\n## Pre-trained models\n\nSee list of pre-trained models available [here](models/pretrained_model_epoch400.ckpt).\n\n## Training\n\nIf 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.\n\nWe have defined three training modes:  \n`train_src_arcitecture.py`: architecture-search training;  \n`train_src_hyper.py`: hyper parameter-search training (without segmentation data);  \n`train_src_hyper_seg.py`: hyper parameter-search training (with segmentation data);\n\nDetailed usage instructions can be found in scripts/README.md.\n\n\n## Testing\n\nIf you want to test the training results, you can use our example:\n\n```\npython MultiPropReg/scripts/test.py  \\\n        --model MultiPropReg/models/pretrained_model_epoch400.ckpt \\\n        --atlas MultiPropReg/data/1yr_t1_atlas.nii  \\\n        --atlas_seg  /path/to/atlas_seg_file  \\\n        --image_path MultiPropReg/data/divided_dataset/Test_Affine  \\\n        --result_save MultiPropReg/output_test_400  \\\n        --gpu 0\n        --hyper_parameters\n```\n\nIf 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.\nDetailed usage instructions can be found in scripts/README.md.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Image registration network using deformation field",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/Co-Yonaka/MultiPropReg"
    },
    "split_keywords": [
        "deformation",
        "registration",
        "imaging",
        "mri"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d1b45a0fcbf2baacb3100ae2132a456790046f1248e3b653ac1f2f4143062b3",
                "md5": "dd82247ec3fe6fb3179b63959e31d531",
                "sha256": "f00b914adf1581bff219a6d31d7d9b1a6de8e41ec602c25e26dbb4a3e02a3451"
            },
            "downloads": -1,
            "filename": "MultiPropReg-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dd82247ec3fe6fb3179b63959e31d531",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5.5",
            "size": 13320189,
            "upload_time": "2023-11-02T04:06:25",
            "upload_time_iso_8601": "2023-11-02T04:06:25.580841Z",
            "url": "https://files.pythonhosted.org/packages/1d/1b/45a0fcbf2baacb3100ae2132a456790046f1248e3b653ac1f2f4143062b3/MultiPropReg-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2d3b2853642fb7879bf2a8215ca478e072d5360c0477354b2e476fa8d19ae4a4",
                "md5": "067cb883a7c59991429b0b7a616f9a5f",
                "sha256": "505d9849cf28cf37df50dcdf3370999f3590c671a71bf6e578280ded08c3ab5d"
            },
            "downloads": -1,
            "filename": "MultiPropReg-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "067cb883a7c59991429b0b7a616f9a5f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5.5",
            "size": 13245524,
            "upload_time": "2023-11-02T04:06:56",
            "upload_time_iso_8601": "2023-11-02T04:06:56.855633Z",
            "url": "https://files.pythonhosted.org/packages/2d/3b/2853642fb7879bf2a8215ca478e072d5360c0477354b2e476fa8d19ae4a4/MultiPropReg-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-02 04:06:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Co-Yonaka",
    "github_project": "MultiPropReg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "multipropreg"
}
        
Elapsed time: 0.14565s