torchio  by TorchIO-project

TorchIO: Python package for medical image processing in AI

created 5 years ago
2,242 stars

Top 20.6% on sourcepulse

GitHubView on GitHub
Project Summary

TorchIO is a Python package designed for efficient loading, preprocessing, sampling, and augmentation of 3D medical images within PyTorch-based deep learning applications. It addresses the need for specialized tools to handle the unique challenges of medical imaging data, offering a comprehensive suite of intensity and spatial transformations for both general computer vision tasks and domain-specific artifact simulation.

How It Works

TorchIO leverages PyTorch's tensor operations to provide a flexible and efficient pipeline for medical image processing. Its core strength lies in its extensive collection of transforms, which can be chained together for complex preprocessing and augmentation workflows. This includes standard operations like affine transformations and noise simulation, as well as advanced, medically relevant artifacts such as magnetic field inhomogeneity and k-space motion artifacts, enabling more robust model training.

Quick Start & Requirements

  • Install via pip: pip install torchio
  • Requires PyTorch. GPU acceleration is recommended for performance.
  • Official documentation and tutorials are available on Read the Docs: https://torchio.readthedocs.io/en/latest/

Highlighted Details

  • Supports patch-based sampling for efficient training on large 3D volumes.
  • Includes a wide array of spatial and intensity transforms, including domain-specific artifact simulations.
  • Inspired by and serves as a successor to the unmaintained NiftyNet project.
  • Provides a comprehensive set of tools for the entire medical image processing pipeline in deep learning.

Maintenance & Community

The project is actively maintained by a community of contributors, with Fernando Pérez-García listed as a primary developer. Contributions are welcomed, and the project follows the all-contributors specification.

Licensing & Compatibility

TorchIO is released under the permissive MIT license, allowing for commercial use and integration into closed-source applications.

Limitations & Caveats

While TorchIO is comprehensive, users should consult the documentation for specific compatibility details with various medical imaging file formats and potential performance considerations on different hardware configurations.

Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
19
Issues (30d)
0
Star History
55 stars in the last 90 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Core Contributor to Hugging Face Transformers and Diffusers), Travis Fischer Travis Fischer(Founder of Agentic), and
3 more.

consistency_models by openai

0.0%
6k
PyTorch code for consistency models research paper
created 2 years ago
updated 1 year ago
Starred by Lilian Weng Lilian Weng(Cofounder of Thinking Machines Lab), Patrick Kidger Patrick Kidger(Core Contributor to JAX ecosystem), and
4 more.

glow by openai

0.1%
3k
Generative flow research paper code
created 7 years ago
updated 1 year ago
Starred by Aravind Srinivas Aravind Srinivas(Cofounder of Perplexity), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
6 more.

pytorch3d by facebookresearch

0.2%
9k
PyTorch3D is a PyTorch library for 3D deep learning research
created 5 years ago
updated 1 week ago
Feedback? Help us improve.