Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vision Transformer (ViT) – PyTorch

Scratch Implementation of Vision Transformer and training setup in PyTorch.

Setup

pip install -r requirements.txt

Train

./train.sh

or directly:

python train.py

Monitoring

TensorBoard:

tensorboard --logdir runs

Logs are saved in logs/ Checkpoints are saved in checkpoints/

Structure

  • train.py – training entry point
  • models/ – ViT implementation
  • data/ – dataloaders & transforms
  • utils/ – logging, checkpoints, TensorBoard
  • train.sh – bash launcher

About

Scratch Implementation of paper "An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale"

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages