swin_transformer.rst 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. SwinTransformer
  2. ===============
  3. .. currentmodule:: torchvision.models
  4. The SwinTransformer models are based on the `Swin Transformer: Hierarchical Vision
  5. Transformer using Shifted Windows <https://arxiv.org/abs/2103.14030>`__
  6. paper.
  7. SwinTransformer V2 models are based on the `Swin Transformer V2: Scaling Up Capacity
  8. and Resolution <https://openaccess.thecvf.com/content/CVPR2022/papers/Liu_Swin_Transformer_V2_Scaling_Up_Capacity_and_Resolution_CVPR_2022_paper.pdf>`__
  9. paper.
  10. Model builders
  11. --------------
  12. The following model builders can be used to instantiate an SwinTransformer model (original and V2) with and without pre-trained weights.
  13. All the model builders internally rely on the ``torchvision.models.swin_transformer.SwinTransformer``
  14. base class. Please refer to the `source code
  15. <https://github.com/pytorch/vision/blob/main/torchvision/models/swin_transformer.py>`_ for
  16. more details about this class.
  17. .. autosummary::
  18. :toctree: generated/
  19. :template: function.rst
  20. swin_t
  21. swin_s
  22. swin_b
  23. swin_v2_t
  24. swin_v2_s
  25. swin_v2_b