AltHub

google-research/vision_transformer Alternatives

vision transformer / image classification

Official Google Research repository with JAX/Flax model definitions, pretrained checkpoints, and fine-tuning code for Vision Transformer (ViT), MLP-Mixer, LiT, and related image-recognition architectures.

12.7kJupyter NotebookApache-2.0active · last push 2mo agoGitHub

Same job, different approach

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

huggingface/pytorch-image-modelsGitHub

choose when you need ViT/MLP-Mixer or many other backbones in PyTorch with pretrained weights instead of JAX code.

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
active26d ago
google-research/scenicGitHub

choose for a maintained JAX research library with broader CV training utilities rather than this minimal fine-tuning repo.

Scenic: A Jax Library for Computer Vision Research and Beyond

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

choose for the original higher-throughput JAX training/inference framework that produced the seed's checkpoints.

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 for a hybrid Mamba-transformer backbone when you want a more efficient modern alternative to ViT.

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

2.2k
Python
NOASSERTION
active7mo ago
alibaba/EasyCVGitHub

choose if you want an all-in-one PyTorch CV toolkit rather than a ViT-specific release.

An all-in-one toolkit for computer vision

2.0k
Python
Apache-2.0
slowing1.4y ago
lucidrains/vit-pytorchGitHub

choose for a concise, self-contained PyTorch ViT implementation without JAX dependency, mainly for experimentation.

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
active24d ago
PaddlePaddle/PaddleClasGitHub

choose if you are standardizing on PaddlePaddle and want classification pretrained models/toolkit instead of JAX.

A treasure chest for visual classification and recognition powered by PaddlePaddle

5.8k
Python
Apache-2.0
active2mo ago
NVlabs/FasterViTGitHub

choose for a fast hierarchical ViT variant with improved throughput/accuracy over plain ViT.

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

925
Python
NOASSERTION
slowing1.2y ago
lucidrains/mlp-mixer-pytorchGitHub

choose it for a lightweight PyTorch implementation of MLP-Mixer if seed's JAX stack is unwanted.

An All-MLP solution for Vision, from Google AI

1.1k
Python
MIT
slowing1.3y 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.

sail-sg/poolformerGitHub

choose for a lightweight MetaFormer baseline if you avoid ViT and don't mind an unmaintained repo.

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

1.4k
Python
Apache-2.0
dormant2.4y ago
microsoft/Swin-TransformerGitHub

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

This is an official implementation for "Swin Transformer: Hierarchical Vision Transformer using Shifted Windows".

16.1k
Python
MIT
dormant2.2y ago
open-mmlab/mmpretrainGitHub

choose if you are in the OpenMMLab ecosystem and need a training toolbox; the repo is unmaintained recently.

OpenMMLab Pre-training Toolbox and Benchmark

3.9k
Python
Apache-2.0
dormant2.0y ago
apple/ml-cvnetsGitHub

choose for Apple's PyTorch CV library with deployment-ready models if you don't mind no recent maintenance.

CVNets: A library for training computer vision networks

2.0k
Python
NOASSERTION
active1mo ago
Sense-X/UniFormerGitHub

choose for an efficient convolution-transformer hybrid backbone in PyTorch if you don't mind an older unmaintained repo.

[ICLR2022] official implementation of UniFormer

908
Python
Apache-2.0
dormant2.5y ago
Meituan-AutoML/TwinsGitHub

choose for simple Swin-like transformer designs in PyTorch if you want a lighter alternative, though it is old and unmaintained.

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

610
Python
Apache-2.0
dormant3.7y ago
rishikksh20/MLP-Mixer-pytorchGitHub

older PyTorch-only MLP-Mixer implementation, useful only if you need a minimal no-dependency Mixer in legacy code.

Unofficial implementation of MLP-Mixer: An all-MLP Architecture for Vision

216
Python
MIT
dormant5.4y ago
yitu-opensource/T2T-ViTGitHub

choose for a tokens-to-token ViT variant that trains from scratch better than plain ViT; PyTorch but older.

ICCV2021, Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet

1.2k
Jupyter Notebook
NOASSERTION
dormant3.0y ago
jeonsworld/ViT-pytorchGitHub

old PyTorch reimplementation of ViT; only if you need a tiny standalone example, use timm or vit-pytorch instead.

Pytorch reimplementation of the Vision Transformer (An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale)

2.2k
Jupyter Notebook
MIT
dormant4.4y ago

Listed as an alternative to

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

lucidrains/vit-pytorchGitHub

calls vision_transformer “Official JAX implementation; choose it when training on TPU with JAX instead of PyTorch.”

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

25.5kPythonactive
microsoft/Swin-TransformerGitHub

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

This is an official implementation for "Swin Transformer: Hierarchical Vision Transformer using Shifted Windows".

16.1kPythondormant