P
huggingface/pytorch-image-models★ 37,322 · Python
PyTorch vision SDK for swapping, training, and deploying image backbones
Apache-2.0 · Commercial Friendlyv1.0.31
Side-by-side 2026 comparison in Voice, Vision & Video: huggingface/pytorch-image-models leads in total GitHub adoption (★ 37.3k), while lucidrains/vit-pytorch shows stronger 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs MIT · Commercial Friendly.
PyTorch vision SDK for swapping, training, and deploying image backbones
PyTorch Vision Transformers for classification, pretraining, and architecture experiments
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | huggingface/pytorch-image-models | lucidrains/vit-pytorch |
|---|---|---|
| Total GitHub Stars | ★ 37,322 | ★ 25,603 |
| 24h / 7d Velocity | +1 / +12 | +1 / +13 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 100/100 | A+ · 89/100 |
| Deployment Signals | GPU | CLI |
| Primary Language | Python | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated yesterday | Updated 8d ago |
| Latest Release | v1.0.31 | 1.17.8 |
| Best For | PyTorch teams comparing pretrained vision backbones, fine-tuning single- or multi-label classifiers, or integrating intermediate image features into a larger system | PyTorch teams comparing ViT architectures, experimenting with mixed-resolution batching, or integrating masked pretraining or distillation into an existing training loop |
forward_intermediates() and prune_intermediate_layers() cover every model in v1.0.31; features_only support is more selective.--task multilabel supports BCE training, distributed dataset-level mAP, and micro, macro, and sample F1.sweep.py runs resumable grid or random searches on local GPUs and can branch WSD cooldowns from milestone checkpoints.@misc{rw2019timm,
author = {Ross Wightman},
title = {PyTorch Image Models},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
doi = {10.5281/zenodo.4414861},
howpublished = {\url{https://github.com/rwightman/pytorch-image-models}}
}ViT supports CLS or mean pooling; SimpleViT uses 2D sinusoidal positions, global average pooling, and a linear head.vit_pytorch.na_vit_nested_tensor.NaViT reduces explicit masking and padding and specifies PyTorch 2.5.SimMIM projects masked-token features into pixel space and computes L1 reconstruction loss.$ pip install vit-pytorchSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy