
mobilevit (MMPretrain)
Image classification85 ops731.4K params
6 models, image classification. Fewest parameters first.
MobileViT is a light-weight, general-purpose vision transformer built for mobile devices. Its authors start from the observation that light-weight CNNs are the de-facto choice for mobile vision tasks because their spatial inductive biases let them learn with fewer parameters, yet these networks are spatially local. Self-attention vision transformers learn global representations instead, but unlike CNNs they are heavy-weight.
The key idea is a different perspective on the global processing of information: treating transformers as convolutions. The Hugging Face documentation puts it as enabling global information processing without the heavy computational cost of standard ViTs. The model does not operate on sequential data and is purely designed for image tasks, with feature maps used directly instead of token embeddings.
On ImageNet-1k, MobileViT reaches 78.4% top-1 accuracy with about 6 million parameters, which the paper reports as 3.2% and 6.2% more accurate than MobileNetv3 and DeIT at a similar parameter count. On MS-COCO object detection it is 5.7% more accurate than MobileNetv3 for a similar number of parameters. The paper was accepted at ICLR'22.
The captured timm members mobilevit_s, mobilevit_xs and mobilevit_xxs take their MobileVitBlock and checkpoints from Apple's ml-cvnets code, with the rest of the network assembled by Ross Wightman. The Transformers members add an image-classification head pretrained on ImageNet-1k and a semantic-segmentation head that uses DeepLabV3 and is pretrained on PASCAL VOC. One quirk to know before feeding it your own images: the pretrained Transformers weights expect BGR input, not RGB.
AI-written summary; not reviewed by a person. Corrections welcome.
Paper: MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer

Image classification85 ops731.4K params

Image classification468 ops1.3M params

Image classification466 ops2.3M params

Image classification390 ops4.9M params

Image classification466 ops5.6M params

Image classification406 ops6.4M params