AltHub

lucidrains/vit-pytorch Alternatives

vision transformer / image classification

A PyTorch library implementing the Vision Transformer (ViT) and a large set of ViT variants for image classification and self-supervised learning.

25.5kPythonMITactive · last push 23d agoGitHub

Same job, different approach

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

alibaba/EasyCVGitHub

Full CV toolkit; choose it when you need a broad model zoo and training pipeline, not just ViT.

An all-in-one toolkit for computer vision

2.0k
Python
Apache-2.0
slowing1.4y ago
google-research/scenicGitHub

JAX CV research library; choose it when your stack is JAX and you need production-grade ViT/other models.

Scenic: A Jax Library for Computer Vision Research and Beyond

3.8k
Python
Apache-2.0
active1mo ago
microsoft/Swin-TransformerGitHub

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

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

16.1k
Python
MIT
dormant2.2y ago
NVlabs/MambaVisionGitHub

Hybrid Mamba-Transformer backbone; choose it when you need a modern, efficient alternative to ViT with linear complexity.

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

2.2k
Python
NOASSERTION
active7mo ago
huggingface/pytorch-image-modelsGitHub

Large model collection; choose it when you want pretrained weights and standardized training/inference across many 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
google-research/big_visionGitHub

Official JAX codebase for ViT; choose it for large-scale distributed training and reproducing research results.

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

3.5k
Jupyter Notebook
Apache-2.0
slowing1.4y ago
open-mmlab/mmpretrainGitHub

Config-driven OpenMMLab toolbox; choose it when you want modular training/config system and many pretrained models.

OpenMMLab Pre-training Toolbox and Benchmark

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

Apple's CV training library; choose it when you prefer a self-contained library with efficient model implementations and quantization.

CVNets: A library for training computer vision networks

2.0k
Python
NOASSERTION
active1mo ago
sail-sg/poolformerGitHub

PoolFormer implementation; choose it when you need a simple non-attention metaformer baseline.

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

1.4k
Python
Apache-2.0
dormant2.4y ago

Listed as an alternative to

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

microsoft/Swin-TransformerGitHub

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

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

16.1kPythondormant
google-research/vision_transformerGitHub

calls vit-pytorch “choose for a concise, self-contained PyTorch ViT implementation without JAX dependency, mainly for experimentation.”

12.7kJupyter Notebookactive
huggingface/pytorch-image-modelsGitHub

calls vit-pytorch “Standalone ViT variant implementations without pretrained weights; choose for research flexibility but not drop-in.”

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.2kPythonactive