Torchio
Medical imaging processing for AI applications.
Install / Use
/learn @TorchIO-project/TorchioREADME
Tools like TorchIO are a symptom of the maturation of medical AI research using deep learning techniques.
Jack Clark, Policy Director at OpenAI (link).
<!-- markdownlint-disable --> <table align="center"> <tr> <td align="left"> <b>Package</b> </td> <td align="center"> <a href="https://pypi.org/project/torchio/"> <img src="https://img.shields.io/pypi/dm/torchio.svg?label=PyPI%20downloads&logo=python&logoColor=white" alt="PyPI downloads"> </a> <a href="https://pypi.org/project/torchio/"> <img src="https://img.shields.io/pypi/v/torchio?label=PyPI%20version&logo=python&logoColor=white" alt="PyPI version"> </a> <a href="https://anaconda.org/conda-forge/torchio"> <img src="https://img.shields.io/conda/v/conda-forge/torchio.svg?label=conda-forge&logo=conda-forge" alt="Conda version"> </a> </td> </tr> <tr> <td align="left"> <b>CI</b> </td> <td align="center"> <a href="https://github.com/TorchIO-project/torchio/actions/workflows/tests.yml"> <img src="https://github.com/TorchIO-project/torchio/actions/workflows/tests.yml/badge.svg" alt="Tests status"> </a> <a href="https://github.com/TorchIO-project/torchio/actions/workflows/docs.yml"> <img src="https://github.com/TorchIO-project/torchio/actions/workflows/docs.yml/badge.svg" alt="Documentation status"> </a> <a href="https://app.codecov.io/github/TorchIO-project/torchio"> <img src="https://codecov.io/gh/TorchIO-project/torchio/branch/main/graphs/badge.svg" alt="Coverage status"> </a> </td> </tr> <tr> <td align="left"> <b>Code</b> </td> <td align="center"> <a href="https://docs.astral.sh/ruff/"> <img src="https://camo.githubusercontent.com/bb88127790fb054cba2caf3f3be2569c1b97bb45a44b47b52d738f8781a8ede4/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f636861726c6965726d617273682f727566662f6d61696e2f6173736574732f62616467652f76312e6a736f6e" alt="Code style"> </a> <a href="https://scrutinizer-ci.com/g/TorchIO-project/torchio/?branch=main"> <img src="https://img.shields.io/scrutinizer/g/TorchIO-project/torchio.svg?label=Code%20quality&logo=scrutinizer" alt="Code quality"> </a> </td> </tr> <tr> <td align="left"> <b>Tutorials</b> </td> <td align="center"> <a href="https://github.com/TorchIO-project/torchio/blob/main/tutorials/README.md"> <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Google Colab"> </a> </td> </tr> <tr> <td align="left"> <b>Community</b> </td> <td align="center"> <a href="https://www.youtube.com/watch?v=UEUVSw5-M9M"> <img src="https://img.shields.io/youtube/views/UEUVSw5-M9M?label=watch&style=social" alt="YouTube"> </a> <a href="https://github.com/TorchIO-project/torchio#contributors"> <img src="https://img.shields.io/github/all-contributors/TorchIO-project/torchio?color=ee8449&style=flat-square" alt="All Contributors"> </a> </td> </tr> </table>
<p align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html"> <img style="width: 600px; overflow: hidden;" src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/fpg_progressive.gif" alt="Progressive artifacts"> </a> </p> <p align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html"> <img style="width: 360px; height: 360px; overflow: hidden;" src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/augmentation.gif" alt="Augmentation"> </a> </p>
<table align="center"> <tr> <td align="center">Original</td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomblur">Random blur</a> </td> </tr> <tr> <td align="center"><img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/1_Lambda_mri.png" alt="Original"></td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomblur"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/2_RandomBlur_mri.gif" alt="Random blur"> </a> </td> </tr> <tr> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomflip">Random flip</a> </td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomnoise">Random noise</a> </td> </tr> <tr> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomflip"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/3_RandomFlip_mri.gif" alt="Random flip"> </a> </td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomnoise"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/4_Compose_mri.gif" alt="Random noise"> </a> </td> </tr> <tr> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomaffine">Random affine transformation</a> </td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomelasticdeformation">Random elastic transformation</a> </td> </tr> <tr> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomaffine"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/5_RandomAffine_mri.gif" alt="Random affine transformation"> </a> </td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomelasticdeformation"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/6_RandomElasticDeformation_mri.gif" alt="Random elastic transformation"> </a> </td> </tr> <tr> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randombiasfield">Random bias field artifact</a> </td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randommotion">Random motion artifact</a> </td> </tr> <tr> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randombiasfield"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/7_RandomBiasField_mri.gif" alt="Random bias field artifact"> </a> </td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randommotion"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/8_RandomMotion_mri.gif" alt="Random motion artifact"> </a> </td> </tr> <tr> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomspike">Random spike artifact</a> </td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomghosting">Random ghosting artifact</a> </td> </tr> <tr> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomspike"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/9_RandomSpike_mri.gif" alt="Random spike artifact"> </a> </td> <td align="center"> <a href="https://docs.torchio.org/transforms/augmentation.html#randomghosting"> <img src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/gifs_readme/10_RandomGhosting_mri.gif" alt="Random ghosting artifact"> </a> </td> </tr> </table>
<p align="center"> <a href="https://docs.torchio.org/patches/patch_training.html#queue"> <img style="width: 640px; height: 360px; overflow: hidden;" src="https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/queue.gif" alt="Queue"> </a> </p>
(Queue for patch-based training)
<!-- markdownlint-restore -->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 tra
Related Skills
claude-opus-4-5-migration
81.4kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
330.7kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
49.6k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.5kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
