
maxvit_pico_rw_256
Image classification1,128 ops7.5M params
25 models, image classification. Fewest parameters first.
MaxViT is a hierarchical vision backbone that gets attention to see the whole image at every stage, including the early high-resolution ones, without paying the quadratic cost of full self-attention. Its authors frame the problem plainly: the lack of scalability of self-attention with respect to image size had kept Transformers out of state-of-the-art vision backbones. Their answer is multi-axis attention, two sparse forms of attention, blocked local and dilated global, that together allow global-local spatial interactions on arbitrary input resolutions with only linear complexity.
Look for the repeating unit in the graph: an MBConv block with squeeze-and-excitation, then block attention, then grid attention, each attention followed by a feed-forward network. Block attention partitions the feature map into non-overlapping windows and attends within each, which is local mixing. Grid attention instead overlays a fixed uniform grid on the whole map and attends among the pixels that share a grid position, which amounts to dilated, global mixing of tokens. Both use a window and grid size of 7, following Swin, so the local and global halves cost the same. The authors point out that this is a drop-in replacement for Swin's attention with exactly the same parameters and FLOPs, but with no masking, padding or cyclic shifting. The depthwise convolution inside MBConv doubles as a conditional position encoding, so you will find no explicit positional embedding layer.
The body has a two-convolution stem and four stages, each at half the resolution and double the channels of the one before, and the model is scaled by changing blocks per stage and channel width. The attention head size is 32 everywhere. On ImageNet-1K without extra data MaxViT reaches 86.5% top-1, and 88.7% with ImageNet-21K pre-training. The paper also uses MaxViT blocks for object detection, image aesthetic assessment and unconditional image generation; the captured members here are the classifiers only.
A note on provenance: timm's MaxViT is a from-scratch PyTorch implementation, done 99% from the paper with last-minute adjustments from the public code release. Members whose names carry _tf follow the TensorFlow release at 224, 384 or 512 pixels; those with _rw are the timm author's own configurations, which run a bit faster and lighter than the paper's. The rmlp members use a relative position MLP. One member, maxvit_t, comes from torchvision instead.
AI-written summary; not reviewed by a person. Corrections welcome.

Image classification1,128 ops7.5M params

Image classification1,304 ops7.5M params

Image classification724 ops15.5M params

Image classification836 ops15.5M params

Image classification1,128 ops29.1M params

Image classification1,128 ops29.1M params

Image classification1,304 ops29.1M params

Image classification1,238 ops30.1M params

Image classification1,096 ops30.9M params

Image classification1,147 ops30.9M params

Image classification1,096 ops31M params

Image classification1,096 ops31M params

Image classification1,304 ops64.9M params

Image classification1,304 ops64.9M params

Image classification1,096 ops68.9M params

Image classification1,096 ops69M params

Image classification1,096 ops69.1M params

Image classification2,828 ops116.1M params

Image classification2,828 ops116.1M params

Image classification2,357 ops119.5M params

Image classification2,357 ops119.7M params

Image classification2,357 ops119.9M params

Image classification2,357 ops211.8M params

Image classification2,357 ops212M params

Image classification2,357 ops507M params