A PyTorch implementation of the Vision Transformer (ViT) and related vision transformer architectures. Current version 1.20.4, actively maintained with frequent releases.
pip install vit-pytorchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic instantiation and forward pass of a Vision Transformer.
Use 'pip install vit-pytorch' and 'from vit_pytorch import ViT'.
Use 'from vit_pytorch import ViT'.
Upgrade to the latest version with 'pip install --upgrade vit-pytorch' and use 'from vit_pytorch import ViT'.
Install with 'pip install vit-pytorch' (hyphen) and import with 'import vit_pytorch' (underscore).