Skip to content

thatgeeman/vit-pytorch

Repository files navigation

vit-pytorch

TODOs

  • Add patch embeddings
  • Add transformer encoder layer
  • Add transformer encoder (multiple layers)
  • Why repeat class token?
  • Attention dropout
  • Embedding dropout
  • MLP dropout (in encoder)
  • Add classification head
  • Complete ViT-Base
  • Make named layers to make torchvision compatible
  • Add training scripts

Install

pip install vit_pytorch

How to use

Load a config.yml file and pass to ViT module to modify architecture parameters.

About

Implementation of ViT (vision transformer) paper using PyTorch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published