
twins (MMPretrain)
Image classification86 ops731.4K params
7 models, image classification. Fewest parameters first.
Twins is a pair of vision transformer architectures, Twins-PCPVT and Twins-SVT, that came out of a study of how spatial attention should be designed. The paper presents both as backbones for image classification as well as dense detection and segmentation.
Twins-PCPVT is built on PVT and CPVT and uses only global attention. It replaces the absolute positional encoding of PVT with the conditional position encoding from CPVT, produced by a 2D depth-wise convolution placed after the first encoder block of each stage. Twins-SVT uses spatially separable self-attention, which pairs locally-grouped self-attention for fine-grained, short-distance information with global sub-sampled attention for long-distance and global information. The authors named this attention after separable depthwise convolutions.
On ImageNet-1K the paper reports that Twins-PCPVT-S outperforms PVT-small by 1.4% and obtains a result similar to Swin-T with 18% fewer FLOPs, and that Twins-SVT-S is better than Swin-T with about 35% fewer FLOPs.
AI-written summary; not reviewed by a person. Corrections welcome.
Paper: read the paper

Image classification86 ops731.4K params

Image classification594 ops24.1M params

Image classification535 ops24.1M params

Image classification907 ops43.8M params

Image classification783 ops56.1M params

Image classification1,310 ops61M params

Image classification783 ops99.3M params