← all repositories
junyuchen245/TransMorph_Transformer_for_Medical_Image_Registration

Swin Transformers learn to align 3D brain scans without labels

TransMorph swaps CNNs for Swin Transformers to align 3D medical scans without labeled data, adding diffeomorphic and uncertainty-aware variants.

628 stars Python Computer VisionML Frameworks
TransMorph_Transformer_for_Medical_Image_Registration
Not currently ranked — collecting fresh signals.
star history

What it does TransMorph is a PyTorch implementation of a 2022 Medical Image Analysis paper that applies Vision and Swin Transformers to unsupervised 3D medical image registration. It learns to warp and align volumetric scans—primarily brain MRIs—without relying on manually annotated ground truth. The repo includes four model flavors: a standard hybrid Transformer-ConvNet, two diffeomorphic variants that enforce topology-preserving deformations, and a Bayesian version that estimates registration uncertainty.

The interesting bit Instead of treating transformers as a drop-in replacement, the project bundles a full experimental suite: it ships with training and inference scripts for eight classical and learning-based baselines (from ANTsPy to VoxelMorph) and four competing Transformer architectures so you can compare long-range attention against old-school CNNs and optimization-based methods on the same footing. The Bayesian variant is a nice touch—it doesn’t just warp the image; it tells you how much to trust the warp.

Key highlights

  • Four model variants: standard, diffeomorphic (probabilistic and B-spline), and Bayesian uncertainty estimation.
  • Supports both mono-modal and multi-modal registration with six similarity losses (NCC, MI, SSIM, MIND-SSC, etc.) and four deformation regularizers.
  • Includes pre-trained models and reproducible training pipelines for public IXI and OASIS brain MRI datasets.
  • Bundles baseline implementations for direct comparison with classical methods (SyN, NiftyReg, LDDMM) and modern CNN/Transformer competitors.
  • A Docker image is available for out-of-the-box brain MRI registration.

Caveats

  • The README’s claims of holding first place on the MICCAI 2021 L2R challenge date from 2022; current standings are unclear.
  • The authors’ original JHU brain MRI and Duke CT data are not distributed due to restrictions, so you will need to source your own scans or rely on the provided public datasets.
  • The repo is a research artifact tied to a specific paper, and the authors now point to a newer lightweight package (MIR) for broader deployment.

Verdict Worth a look if you are building or benchmarking deep-learning registration pipelines and need a well-documented Transformer baseline with uncertainty and diffeomorphic options. Skip it if you want a generic, framework-agnostic tool rather than a paper-specific PyTorch implementation.

Frequently asked

What is junyuchen245/TransMorph_Transformer_for_Medical_Image_Registration?
TransMorph swaps CNNs for Swin Transformers to align 3D medical scans without labeled data, adding diffeomorphic and uncertainty-aware variants.
Is TransMorph_Transformer_for_Medical_Image_Registration open source?
Yes — junyuchen245/TransMorph_Transformer_for_Medical_Image_Registration is open source, released under the MIT license.
What language is TransMorph_Transformer_for_Medical_Image_Registration written in?
junyuchen245/TransMorph_Transformer_for_Medical_Image_Registration is primarily written in Python.
How popular is TransMorph_Transformer_for_Medical_Image_Registration?
junyuchen245/TransMorph_Transformer_for_Medical_Image_Registration has 628 stars on GitHub.
Where can I find TransMorph_Transformer_for_Medical_Image_Registration?
junyuchen245/TransMorph_Transformer_for_Medical_Image_Registration is on GitHub at https://github.com/junyuchen245/TransMorph_Transformer_for_Medical_Image_Registration.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.