guanhuaw/MIRTorch
guanhuaw/MIRTorch has 150 GitHub stars and 25 forks. GitHot measured +1 stars in 24 hours and +1 in 7 days. Last checked 2026-11-23 14:36 UTC. Last push 2026-09-12.
측정된 스타 증가
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
A PyTorch-powered differentiable image reconstruction/optimization toolbox
머신러닝README.md
OriginalMIRTorch
A differentiable PyTorch toolbox for medical imaging reconstruction, developed at the University of Michigan. MIRTorch provides composable linear maps, proximal operators, iterative solvers, and MRI, CT, and SPECT system models.
Documentation · Examples · API
New
FINUFFT/cuFINUFFT now accelerate non-Cartesian and B0-informed MRI; warm NVIDIA A10 benchmarks measured up to 5.2× faster NUFFT, 9.4× faster Toeplitz, and 12.3× faster iterative solvers (workload-dependent). Both NUFFT backends also support efficient first-order trajectory gradients, enabling SNOPY-style sampling-pattern optimization directly in MIRTorch (Wang and Fessler, 2023).
Install
Install PyTorch for your platform, then:
pip install MIRTorch
CUDA users can install cuFINUFFT with:
pip install "MIRTorch[cufinufft]"
For local development:
pip install -e ".[dev]"
Backends and compilation
NuSense, NuSenseGram, Gmri, and GmriGram use an installed FINUFFT or
cuFINUFFT library when the device supports it, then fall back to torchkbnufft.
Base macOS, Apple Metal, and Linux ARM installs therefore work without a
native library. Set backend="torchkbnufft" or backend="finufft" to
override the automatic choice.
Real-valued CUDA runs of Diff2dgram, FISTA, and POGM use torch.compile
automatically when PyTorch provides it. Other inputs stay eager; pass
compile=False to disable compilation explicitly.
Examples
Each notebook has an Open in Colab badge and a Colab-only setup cell; local runs continue to use the current checkout. Most examples choose CUDA, Apple Metal, or CPU at runtime. The dictionary-learning example deliberately stays on CPU because it exchanges sparse arrays with SciPy:
demo_mr_physics.ipynb: MR contrast, encoding, inverse problems, and optimizationdemo_mri.ipynb: CG-SENSE and B0-informed PWLSdemo_3d.ipynb: 3D non-Cartesian MRI and Toeplitz embeddingdemo_trajectory_optimization.ipynb: SNOPY-style radial trajectory optimizationdemo_cs.ipynb: compressed-sensing MRIdemo_mlem.ipynb: full-field SPECT, attenuation, and depth-dependent collimator responsedemo_ct.ipynb: 2D parallel-/fan-beam CT, photon counts, and nonnegative reconstructiondemo_mnist.ipynb: CG, FISTA, and POGMdemo_dl.ipynb: dictionary learning
Citation and acknowledgments
MIRTorch is inspired by MIRT, MIRT.jl, SigPy, and PyLops.
If MIRTorch is useful in your work, please cite:
@inproceedings{wang:22:mirtorch,
title={{MIRTorch}: A {PyTorch}-powered Differentiable Toolbox for Fast Image
Reconstruction and Scan Protocol Optimization},
author={Wang, Guanhua and Shah, Neel and Zhu, Keyue and Noll, Douglas C. and
Fessler, Jeffrey A.},
booktitle={Proceedings of the International Society for Magnetic Resonance
in Medicine (ISMRM)},
pages={4982},
year={2022}
}
See the documentation for the BJORK and SPECT citations.
MIRTorch is distributed under the BSD 3-Clause License.
관련 프로젝트 살펴보기
불러오는 중…