
mobilevit (semantic segmentation)
Image classification406 ops6.4M params
A lightweight MobileViT network with a DeepLabV3 head that labels each pixel of an image.
Segmentation · 406 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
transformers.AutoModelForSemanticSegmentation.from_config()
MobileViT is a lightweight vision transformer for mobile devices that combines the efficiency and inductive biases of CNNs with the global context modeling of transformers. It treats transformers as convolutions, which lets it process global information without the heavy computational cost of standard ViTs. It uses feature maps directly instead of token embeddings. It does not operate on sequential data and is designed purely for image tasks.
This is the semantic segmentation form of MobileViT: the segmentation models use a DeepLabV3 head, and the released ones are pretrained on PASCAL VOC. Images prepared with custom preprocessing must be in BGR format, not RGB, because the pretrained weights expect it. The original MobileViT checkpoints are published under the Apple organization.
Key idea. MobileViT merges the efficiency and inductive biases of CNNs with the global context modeling of transformers in a lightweight vision transformer for mobile devices.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.