Tools for loading, augmenting and writing 3D medical images on PyTorch.
Project description
TorchIO
Tools like TorchIO are a symptom of the maturation of medical AI research using deep learning techniques.
Jack Clark, Policy Director at OpenAI (link).
Package | |
Docs | |
Build | |
Coverage | |
Code | |
Notebook | |
Social |
(Queue for patch-based training)
TorchIO is a Python package containing a set of tools to efficiently read, preprocess, sample, augment, and write 3D medical images in deep learning applications written in PyTorch, including intensity and spatial transforms for data augmentation and preprocessing. Transforms include typical computer vision operations such as random affine transformations and also domain-specific ones such as simulation of intensity artifacts due to MRI magnetic field inhomogeneity or k-space motion artifacts.
This package has been greatly inspired by NiftyNet, which is not actively maintained anymore.
Credits
If you like this repository, please click on Star!
If you use this package for your research, please cite the paper:
BibTeX entry:
@misc{fern2020torchio,
title={TorchIO: a Python library for efficient loading, preprocessing, augmentation and patch-based sampling of medical images in deep learning},
author={Fernando Pérez-García and Rachel Sparks and Sebastien Ourselin},
year={2020},
eprint={2003.04696},
archivePrefix={arXiv},
primaryClass={eess.IV}
}
Getting started
See Getting started for installation instructions, a Hello, World! example and a comprehensive Jupyter notebook tutorial on Google Colab.
All the documentation is hosted on Read the Docs.
Please open a new issue if you think something is missing.
Contributors
Thanks goes to all these people (emoji key):
Fernando Pérez-García 💻 📖 |
valabregue 🤔 👀 💻 |
GFabien 💻 |
G.Reguig 💻 |
Niels Schurink 💻 |
Ibrahim Hadzic 🐛 |
ReubenDo 🤔 |
Julian Klug 🤔 |
David Völgyes 🤔 |
Jean-Christophe Fillion-Robin 📖 |
Suraj Pai 🤔 |
Ben Darwin 🤔 |
This project follows the all-contributors specification. Contributions of any kind welcome!
History
0.15.0 (07-04-2020)
- Refactor
RandomElasticDeformation
transform - Make
Subject
inherit fromdict
0.14.0 (31-03-2020)
- Add
datasets
module - Add support for DICOM files
- Add documentation
- Add
CropOrPad
transform
0.13.0 (24-02-2020)
- Add
Subject
class - Add random blur transform
- Add lambda transform
- Add random patches swapping transform
- Add MRI k-space ghosting artefact augmentation
0.12.0 (21-01-2020)
- Add ToCanonical transform
- Add CenterCropOrPad transform
0.11.0 (15-01-2020)
- Add Resample transform
0.10.0 (15-01-2020)
- Add Pad transform
- Add Crop transform
0.9.0 (14-01-2020)
- Add CLI tool to transform an image from file
0.8.0 (11-01-2020)
- Add Image class
0.7.0 (02-01-2020)
- Make transforms use PyTorch tensors consistently
0.6.0 (02-01-2020)
- Add support for NRRD
0.5.0 (01-01-2020)
- Add bias field transform
0.4.0 (29-12-2019)
- Add MRI k-space motion artefact augmentation
0.3.0 (21-12-2019)
- Add Rescale transform
- Add support for multimodal data and missing modalities
0.2.0 (2019-12-06)
- First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file torchio-0.16.29.tar.gz
.
File metadata
- Download URL: torchio-0.16.29.tar.gz
- Upload date:
- Size: 23.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df94455deca1e2d0b066a8e5f3b8b478f76ccd640921c6879841d4d2c03ba141 |
|
MD5 | 8fb980c3915ab5e09fee4cc91083e561 |
|
BLAKE2b-256 | d8a5123d49e7b4789aa45eb51bf585fc56f0ee6e211d14297431bb4f7256fe5a |
File details
Details for the file torchio-0.16.29-py2.py3-none-any.whl
.
File metadata
- Download URL: torchio-0.16.29-py2.py3-none-any.whl
- Upload date:
- Size: 88.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1344527014a0d9c7ae074ddef150407c081e8f3639ab7c725f1f4e345e24eeff |
|
MD5 | 00515baf904f13b6efc977045ae163f6 |
|
BLAKE2b-256 | 38b6352c7961ea03104afc39808e1f560c681a815c229e045ae90fc2838aff5c |