arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21033cs.CVcs.AIcs.LGcs.SE
收藏

MIP Candy:用于医学图像处理的模块化PyTorch框架

MIP Candy: A Modular PyTorch Framework for Medical Image Processing

University of Toronto(多伦多大学);Vector Institute(向量研究所);Project Neura;UTMIST;Amplimit

Tianhao Fu, Yucheng Chen

AI总结:

MIP Candy是一个模块化PyTorch框架,为医学图像处理提供完整的流程管线,支持灵活配置和多种实验追踪工具。

摘要:

医学图像处理需要专门的软件来处理高维体积数据、异构文件格式和领域特定的训练流程。现有框架要么提供需要大量整合工作的低级组件,要么强制使用刚性、整体性的流程管线,难以修改。我们提出了MIP Candy(MIPCandy),一个免费的基于PyTorch的框架,专门用于医学图像处理。MIPCandy提供了一个完整的、模块化的流程管线,涵盖数据加载、训练、推理和评估,允许研究人员通过实现一个单一的方法$\texttt{build_network}$来获得完整的流程工作流,同时保留对每个组件的细粒度控制。设计的核心是$\texttt{LayerT}$,一种延迟配置机制,使在不子类化的情况下能够在运行时替换卷积、归一化和激活模块。该框架还提供内置的$k$-折交叉验证、带有自动感兴趣区域检测的数据集检查、深度监督、指数移动平均、多前端实验追踪(Weights & Biases、Notion、MLflow)、训练状态恢复以及通过商回归进行验证分数预测。可扩展的捆绑生态系统提供了预构建的模型实现,这些实现遵循一致的训练器-预测器模式,并且与核心框架集成而无需修改。MIP Candy以Apache-2.0许可证开源,并要求Python~3.12或更高版本。源代码和文档可在https://github.com/ProjectNeura/MIPCandy获取。

英文摘要:

Medical image processing demands specialized software that handles high-dimensional volumetric data, heterogeneous file formats, and domain-specific training procedures. Existing frameworks either provide low-level components that require substantial integration effort or impose rigid, monolithic pipelines that resist modification. We present MIP Candy (MIPCandy), a freely available, PyTorch-based framework designed specifically for medical image processing. MIPCandy provides a complete, modular pipeline spanning data loading, training, inference, and evaluation, allowing researchers to obtain a fully functional process workflow by implementing a single method, $\texttt{build_network}$, while retaining fine-grained control over every component. Central to the design is $\texttt{LayerT}$, a deferred configuration mechanism that enables runtime substitution of convolution, normalization, and activation modules without subclassing. The framework further offers built-in $k$-fold cross-validation, dataset inspection with automatic region-of-interest detection, deep supervision, exponential moving average, multi-frontend experiment tracking (Weights & Biases, Notion, MLflow), training state recovery, and validation score prediction via quotient regression. An extensible bundle ecosystem provides pre-built model implementations that follow a consistent trainer--predictor pattern and integrate with the core framework without modification. MIPCandy is open-source under the Apache-2.0 license and requires Python~3.12 or later. Source code and documentation are available at https://github.com/ProjectNeura/MIPCandy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑