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
RandomElasticDeformationtransform - Make
Subjectinherit fromdict
0.14.0 (31-03-2020)
- Add
datasetsmodule - Add support for DICOM files
- Add documentation
- Add
CropOrPadtransform
0.13.0 (24-02-2020)
- Add
Subjectclass - 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.
Metadata
Release files for torchio 0.17.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| torchio-0.17.8.tar.gz | 23.1 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torchio-0.17.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 23.2 MB
Release files / torchio-0.17.8.tar.gz
| Download URL | torchio-0.17.8.tar.gz |
|---|---|
| Size | 23.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e72373029d65bf361dd5711945d8b029e77ab4bb0bd1a239bb17950cb0a68e4c
|
|
BLAKE2b-256 checksum How to use checksums |
7a9ecd1ca7476c6d62f1300434db52b48154e035d4ddb6aa6f8aa79ffa6afd04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
|
Release files / torchio-0.17.8-py2.py3-none-any.whl
| Download URL | torchio-0.17.8-py2.py3-none-any.whl |
|---|---|
| Size | 89.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e5250573d05a131de37a6033e0fe228ab3e726dc4a1cd8c4bf24f5a187823597
|
|
BLAKE2b-256 checksum How to use checksums |
c6808fa37f2be6fea684b9c8fb8898b9dd4381d4aceb548f9ab0e927aaa48445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
|
Security for torchio 0.17.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.