
maxxvit_rmlp_nano_rw_256
Image classification782 ops16.8M params
A MaxxViT model from timm's implementation of the MaxViT and CoAtNet transformer-CNN hybrids.
Image classification · 1,218 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
timm.create_model('maxxvit_rmlp_tiny_rw_256', pretrained=False) This model is the tiny-size MaxxViT with relative position MLP.
About this model's family
MaxxViT models are defined in the timm library's implementation of MaxVit and CoAtNet, two architectures that mix vision transformers with convolutional networks. That implementation was written from scratch in PyTorch, and its author reports that 99% of it was done from the papers, with some late adjustments based on the public MaxViT code release.
The MaxViT paper's central idea is multi-axis attention, which decomposes full-size attention into two sparse forms, one local and one global. Block attention performs self-attention within windows, while grid attention attends globally to pixels in a sparse, uniform grid laid over the entire 2D space. Both have linear complexity in input size. A MaxViT block applies the two one after the other, preceded by an MBConv block with a squeeze-and-excitation module.
The "rw" in these model names typically marks configurations that the library's author wrote before referring to the official code. The author notes that these configurations appear to be a bit faster and lower in resource use than the paper's.
Key idea. The MaxViT paper introduces multi-axis attention, combining blocked local and dilated global attention with linear complexity, and stacks it with convolutions into a hierarchical vision backbone.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{tu2022maxvitmultiaxisvisiontransformer,
title={MaxViT: Multi-Axis Vision Transformer},
author={Zhengzhong Tu and Hossein Talebi and Han Zhang and Feng Yang and Peyman Milanfar and Alan Bovik and Yinxiao Li},
year={2022},
eprint={2204.01697},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2204.01697},
}