Il prossimoProssima guida
Trasformatori di diffusione
IA visiva
GUIDA AI visiva
Swin Transformer is a vision Transformer that computes attention within local windows and shifts window partitions between layers.
Ascolta questa guidaNarrato dall'IA · ~2 min
Its hierarchy produces features at multiple spatial resolutions.
The Swin paper introduces window-based self-attention and shifted windows for cross-window communication. Fixed-size windows reduce attention complexity to linear growth with image size. Patch merging builds a hierarchy of feature maps, supporting classification and dense prediction tasks. The paper evaluates specific model variants on ImageNet, COCO, and ADE20K; results are benchmark- and setup-specific. Unlike standard ViT global attention over all image patches, Swin computes attention within local windows. Within each window it adds a learnable relative-position bias. Shifted-window blocks use a mask after cyclic shifting so patches wrapped across image boundaries do not become unintended neighbors.
Use a Swin backbone in an image-classification experiment.
Feed hierarchical features into an object-detection or segmentation head.
Compare window attention with global attention at matched image resolution.
Measure memory and latency under a fixed image-size and hardware setup.
Hierarchical local-attention backbones remain one design choice among many vision architectures. Compare them under the intended data, resolution, hardware, and task rather than assuming universal superiority over CNNs or global-attention models.
Newsletter gratuita
Tre storie verificate sull'IA ogni mattina nei giorni feriali, scritte in un inglese semplice. Gratuito per sempre, senza pubblicità.
Un'email ogni giorno feriale. Disiscriviti con un clic. Non vendiamo né condividiamo mai il tuo indirizzo.
Mettiti alla prova
Feedback immediato su ogni risposta e un certificato condivisibile con un ID verificabile una volta superato un corso.
Sostieni l'istruzione gratuita sull'IA. AI Understanding è un'organizzazione non profit 501(c)(3) — nessun annuncio, nessun paywall, mai. Fai una donazione
Swin Transformer is a vision Transformer that computes attention within local windows and shifts window partitions between layers. Its hierarchy produces features at multiple spatial resolutions.
Swin sta per Shifted Windows, il meccanismo che consente alle finestre di attenzione locale di scambiare informazioni tra livelli.
The Swin paper adds learnable relative-position bias to self-attention within each local window.
I livelli alternati spostano la griglia della finestra di mezza finestra, in modo che le patch precedentemente presenti in finestre diverse possano interagire tra loro.
L'unione delle patch concatena le patch vicine per dimezzare la risoluzione spaziale e la doppia profondità del canale, costruendo una gerarchia multiscala.
Le mappe di funzionalità multiscala imitano le dorsali della CNN, quindi Swin si integra facilmente con framework di previsione densa come Mask R-CNN.
Continua a imparare
Altre guide selezionate per questo argomento
Il prossimoProssima guida
Trasformatori di diffusione
IA visiva