Beckschen/TransUNet

This repository includes the official project of TransUNet, presented in our paper: TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation.

View on GitHub ↗Jump to charts ↓

Beckschen/TransUNet has 3k+ stars and 550+ forks on GitHub, is written in Python, and was last pushed on Feb 25, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 3 minutes ago
Added to GitGenius on September 21st, 2026
Created on February 8th, 2021
Open Issues & Pull Requests: 138 (+0)
GitHub issues: Enabled
Number of forks: 584
Total Stargazers: 3,247 (+0)
Total Subscribers: 13 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 13.0 days
Mean response time: 101.6 days
90th percentile: 186.0 days
Tracked items: 30

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 35
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,149 days
Stale 30+ days: 35
Stale 90+ days: 35

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

TransUNet is a medical image segmentation model that uses Transformers as encoders combined with a decoder architecture for both 2D and 3D segmentation tasks.

The tool addresses the challenge of accurate medical image segmentation by replacing traditional convolutional encoders with Vision Transformer (ViT) models. The architecture combines a Transformer encoder with a decoder, leveraging pre-trained ViT weights from Google to improve segmentation performance. The approach supports both 2D image and 3D volume segmentation, allowing practitioners to apply the same methodology across different data dimensionalities.

Developers should choose this tool if they are working on medical image segmentation tasks where high accuracy is critical. The project is particularly suited for researchers and practitioners dealing with organ or lesion segmentation in medical imaging datasets. The 3D variant has demonstrated competitive performance on standard benchmarks, achieving results comparable to or exceeding established baselines. The codebase requires Python 3.7 and standard deep learning dependencies, with flexibility to adjust batch sizes for different memory constraints. Pre-trained ViT models are necessary for initialization, and the repository provides guidance on obtaining these weights along with preprocessed datasets for common benchmarks like BTCV and ACDC.

The project maintains active development with recent updates addressing model availability and expanding capabilities. The repository includes both 2D and 3D implementations with documented training and testing scripts. The codebase references established implementations from Google Research and the PyTorch segmentation models community, indicating integration with recognized standards in the field.