SwinTransformer¶
The SwinTransformer model is based on the Swin Transformer: Hierarchical Vision Transformer using Shifted Windows paper.
Model builders¶
The following model builders can be used to instanciate an SwinTransformer model.
swin_t can be instantiated with pre-trained weights and all others without.
All the model builders internally rely on the torchvision.models.swin_transformer.SwinTransformer
base class. Please refer to the source code for
more details about this class.
|
Constructs a swin_tiny architecture from Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. |
|
Constructs a swin_small architecture from Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. |
|
Constructs a swin_base architecture from Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. |