swin_transformer.rst 803 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SwinTransformer
===============

.. currentmodule:: torchvision.models

The SwinTransformer model is based on the `Swin Transformer: Hierarchical Vision 
Transformer using Shifted Windows <https://arxiv.org/abs/2103.14030>`__
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
<https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py>`_ for
more details about this class.

.. autosummary::
    :toctree: generated/
    :template: function.rst

    swin_t
26
27
    swin_s
    swin_b