All models

hf_mobilevit_semantic_segmentation

A lightweight MobileViT network with a DeepLabV3 head that labels each pixel of an image.

Segmentation · 406 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (29 KB)

Open in a new tab

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.

At a glance

Parameters
6.4M
Operations
406
Framework
PyTorch
Recurrent
No
Published
2021
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m5316
Graph hash
af345353248154436d6f8375aa2232777b84a05570231596d193a03ebcd1665f
Skeleton hash
26c1797c8a7027778403df8e2527f770456382beffee4e33934b3ad55a6c5a20
Architecture hash
bb19e1075e6252e61a1d0c990dd6bd8c1ce905248342d980d60fbef010fcf2f4
Diagram SHA-256
7f805b6f21dc062aa367f055cbaac28bc62b21f6dd14fca8b32284085f3e955a
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForSemanticSegmentation.from_config()

What it is

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.

  • mobilevit
  • mobilevit semantic segmentation
  • mobilevit segmentation
  • mobilevitforsemanticsegmentation
  • lightweight vision transformer
  • mobile vision transformer
  • semantic segmentation
  • mobile segmentation

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.