Swin Transformer on CIFAR10

According to arXiv:2103.14030 [cs.CV]

Original implementation in https://github.com/microsoft/Swin-Transformer

swin-1.png

swin-2.png

swin-3.png

Configuration

Imports

Configuration

Data

Model

Utilities

Transformer

Shifted Windows Self Attention

swin-4.png

Stage

Embedding of patches

Main model

Training

Optimizer

Setup trainer

Start training