AltHub

microsoft/Swin-Transformer Alternatives

vision transformer backbones / image classification

Official PyTorch code and pretrained models for Swin Transformer, a hierarchical vision transformer using shifted windows for image classification and downstream dense tasks.

16.1kPythonMITdormant · last push 2.2y agoGitHub

Drop-in peers

Same problem, same approach. Swapping one for another is a config change, not a rewrite.

huggingface/pytorch-image-modelsGitHub

Choose it when you want an actively maintained single PyTorch library that includes Swin plus many other pretrained backbones.

The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, EfficientNet, NFNet, Vision Transformer (ViT), MobileNetV4, MobileNet-V3 & V2, RegNet, DPN, CSPNet, Swin Transformer, MaxViT, CoAtNet, ConvNeXt, and more

37.2k
Python
Apache-2.0
active25d ago

Same job, different approach

Solves the same problem with a different architecture or at a different layer. Expect to rewrite the integration.

google-research/vision_transformerGitHub

Choose it over Swin when global-attention ViT and JAX/TPU-style pretraining fit your stack better than hierarchical shifted windows.

12.7k
Jupyter Notebook
Apache-2.0
active2mo ago
google-research/scenicGitHub

Choose it when you prefer a maintained JAX/Flax research library over the PyTorch Swin repo and need a broad set of vision architectures.

Scenic: A Jax Library for Computer Vision Research and Beyond

3.8k
Python
Apache-2.0
active1mo ago
google-research/big_visionGitHub

Choose it for the original big_vision JAX codebase and large-scale ViT/SigLIP checkpoints instead of Swin.

Official codebase used to develop Vision Transformer, SigLIP, MLP-Mixer, LiT and more.

3.5k
Jupyter Notebook
Apache-2.0
slowing1.4y ago
NVlabs/MambaVisionGitHub

Choose it when a hybrid mamba-transformer backbone gives better throughput/accuracy at high resolution than Swin.

[CVPR 2025] Official PyTorch Implementation of MambaVision: A Hybrid Mamba-Transformer Vision Backbone

2.2k
Python
NOASSERTION
active7mo ago
alibaba/EasyCVGitHub

Choose it when you want a higher-level all-in-one CV toolkit that wires backbones to downstream tasks, rather than assembling Swin yourself.

An all-in-one toolkit for computer vision

2.0k
Python
Apache-2.0
slowing1.4y ago
sail-sg/poolformerGitHub

Choose it if a simple PoolFormer-style backbone is easier to adapt and you don't need shifted-window engineering, though the repo is old.

PoolFormer: MetaFormer Is Actually What You Need for Vision (CVPR 2022 Oral)

1.4k
Python
Apache-2.0
dormant2.4y ago
NVlabs/FasterViTGitHub

Choose it when you need a hierarchical ViT with faster factorized attention and good high-resolution scaling for dense prediction.

[ICLR 2024] Official PyTorch implementation of FasterViT: Fast Vision Transformers with Hierarchical Attention

925
Python
NOASSERTION
slowing1.2y ago
Sense-X/UniFormerGitHub

Choose it when you need a transformer with efficient local-global attention for image/video tasks and can settle for older, stably released code.

[ICLR2022] official implementation of UniFormer

908
Python
Apache-2.0
dormant2.5y ago
lucidrains/vit-pytorchGitHub

Choose it for a tiny, readable, MIT-licensed ViT implementation if standard patch-based global attention beats Swin for your use case.

Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch

25.5k
Python
MIT
active23d ago
NVlabs/SegFormerGitHub

Choose it when your goal is semantic segmentation and you want an encoder/decoder pair designed together rather than a general Swin backbone plus separate head.

Official PyTorch implementation of SegFormer

3.6k
Python
NOASSERTION
dormant2.2y ago
Meituan-AutoML/TwinsGitHub

Choose it when you want a simpler cross-attention vision transformer with official checkpoints competitive with Swin, despite an old unmaintained repo.

Two simple and effective designs of vision transformer, which is on par with the Swin transformer

610
Python
Apache-2.0
dormant3.7y ago
PaddlePaddle/PaddleClasGitHub

Choose it when you work in PaddlePaddle and want a maintained classification/backbone model zoo, including transformer variants, instead of the PyTorch official code.

A treasure chest for visual classification and recognition powered by PaddlePaddle

5.8k
Python
Apache-2.0
active2mo ago

Older generation, or narrower

An earlier or more limited way to do the job. Still the right call when you need something small, proven, or CPU-only.

open-mmlab/mmpretrainGitHub

Choose it if you need OpenMMLab config-driven classifier/backbone zoo and accept an unmaintained codebase, but not as a current drop-in for official Swin.

OpenMMLab Pre-training Toolbox and Benchmark

3.9k
Python
Apache-2.0
dormant1.9y ago
apple/ml-cvnetsGitHub

Choose it only if you need Apple's mobile-oriented training pipeline for many CV backbones; it is stale and not a maintained drop-in.

CVNets: A library for training computer vision networks

2.0k
Python
NOASSERTION
active1mo ago
HRNet/HRNet-Semantic-SegmentationGitHub

Choose it for high-resolution CNN-based semantic segmentation if you prefer HRNet over a Swin transformer backbone, but it is a narrower one-task repo.

The OCR approach is rephrased as Segmentation Transformer: https://arxiv.org/abs/1909.11065. This is an official implementation of semantic segmentation for HRNet. https://arxiv.org/abs/1908.07919

3.3k
Python
NOASSERTION
dormant3.9y ago
lucidrains/bottleneck-transformer-pytorchGitHub

Choose it only for experimenting with Bottleneck Transformer blocks; it is an unmaintained research snippet rather than a current backbone library.

Implementation of Bottleneck Transformer in Pytorch

677
Python
MIT
dormant5.1y ago

Listed as an alternative to

These projects were analysed and named Swin-Transformer among their alternatives. The relationship is not symmetric — how Swin-Transformer rates them is a separate judgement, made when Swin-Transformer is analysed in its own right.

lucidrains/vit-pytorchGitHub

calls Swin-Transformer “Specific Swin Transformer implementation; choose it when you want Swin's shifted-window attention and official pretrained weights.”

Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch

25.5kPythonactive
google-research/vision_transformerGitHub

calls Swin-Transformer “choose it when you specifically need Swin's hierarchical transformer design in PyTorch; the repo is stable but no longer updated.”

12.7kJupyter Notebookactive
apple/corenetGitHub

calls Swin-Transformer “When you need the official Swin-Transformer implementation for that specific architecture.”

CoreNet: A library for training deep neural networks

7.0kJupyter Notebookslowing