All models

swinv2_large_window12_192

Swin Transformer V2 scales the shifted-window backbone to 3 billion parameters and high resolutions.

Image classification · 1,650 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (16 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
Swin V2
Parameters
228.8M
Operations
1,650
Framework
PyTorch
Recurrent
No
Published
2022
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m10460
Graph hash
67583b04d55aa38c7bc486361c82c223ad5c27700e3ec148e6e87c8e22b0f295
Skeleton hash
d198fd89ef79f5b87b1fcfd60a70ad363d2a94d4966d2e6eee7e865a3402eb1e
Architecture hash
a0b6add26e47fb9e2dbb89e22835af9f37751e323369e36403a8fec4c8d64b37
Diagram SHA-256
82717f61bb72d26451be084d7302045cc8076a1c294f2d4d81269274f63a1826
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

timm.create_model('swinv2_large_window12_192', pretrained=False)

What it is

This is Swin-L V2 at 192x192 with a 12x12 window.

About this model's family

Swin Transformer V2 is about scale: a 3B parameter vision model and the techniques needed to train a vision transformer at billions of parameters. It introduces residual-post-norm combined with cosine attention for training stability, a log-spaced continuous position bias to bridge differing resolutions between pre-training and fine-tuning, and SimMIM pre-training to reduce the need for labeled data. These enable efficiently training very large models, up to 3 billion parameters, that process high-resolution images.

The swinv2_* members in timm carry code and weights from Microsoft's Swin-Transformer repository. The swinv2_cr_* members are adapted from Christoph Reich's implementation and are marked experimental and subject to change in ways that will break weight compatibility. Several official variants were trained at 192x192 with a 12x12 window and then fine-tuned to 256x256 with a 16x16 window. In Transformers, Swin V2 can pad inputs to any height and width divisible by 32.

Key idea. Residual-post-norm with cosine attention, log-spaced continuous position bias and SimMIM pre-training, to scale Swin to 3 billion parameters and high resolutions.

  • swin transformer v2
  • swinv2
  • swin v2
  • swin-b v2
  • swinv2_cr
  • scaling vision transformer
  • image classification
  • backbone
  • microsoft

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.