All models

mobilenet_v2 (semantic segmentation)

MobileNetV2: inverted residual blocks with linear bottlenecks for efficient mobile vision.

Image classification · 219 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 (17 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
2.5M
Operations
219
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2018)
Cited by
26,767 (as of 9 October 2026)
Authors
Mark Sandler, Andrew Howard, Menglong Zhu and others
Name in source
mobilenet_v2:semantic-segmentation
License
BSD-3-Clause
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
m7322
Graph hash
a8bfb7320fc7c4d789bc2e70f4031833362b50790705254025e86b70bd266db4
Skeleton hash
bcb7b1fafb7828fdf748bf96914ec16efd52c2084506340d7bfe137b61933365
Architecture hash
bc40d9d282ffb8472cc4b3a1e8dff82cb06c23f455eafcbbe183d36f7d72272e
Diagram SHA-256
636035ec6c8d40107f7fcd1d3076dd686a3f75b323001e9563fc8d79cb1fcb9b
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

About this model's family

MobileNetV2 is a mobile convolutional architecture that improved the state of the art for mobile models across multiple tasks, benchmarks and model sizes. Its main contribution is one layer module, the inverted residual with linear bottleneck: a low-dimensional input is expanded to high dimension and filtered with a lightweight depthwise convolution. Features are then projected back to a low-dimensional representation with a linear convolution. The inverted part: shortcut connections run between the thin bottleneck layers rather than between expanded representations. Removing non-linearities in the narrow layers turned out to matter for keeping representational power.

The network opens with a full convolution layer with 32 filters followed by 19 residual bottleneck layers, and uses ReLU6 for its robustness under low-precision computation. With the expansion factor of 6, a bottleneck layer taking a 64-channel input and producing 128 channels has a 384-channel intermediate expansion layer. Input resolution and width multiplier are the tunable trade-off knobs; the primary network, width multiplier 1 at 224x224, costs 300 million multiply-adds and uses 3.4 million parameters. The paper also applies it to object detection in a framework called SSDLite and to mobile semantic segmentation through a reduced DeepLabv3 called Mobile DeepLabv3.

The Transformers port predicts 1001 classes rather than ImageNet-1k's 1000, the extra being a background class at index 0. Its segmentation variant uses a DeepLabV3+ head, often pretrained on datasets like PASCAL VOC. For those segmentation models, the final convolution layer of the backbone is computed even though the DeepLabV3+ head doesn't use it. The torchvision mobilenet_v2 builder constructs the same architecture from the paper and takes optional pretrained weights.

Key idea. The inverted residual with linear bottleneck: expand a thin input, filter it with a depthwise convolution, and project it back down with a linear layer.

  • mobilenetv2
  • mobilenet v2
  • mobilenet
  • inverted residual
  • linear bottleneck
  • ssdlite
  • mobile deeplabv3
  • image classification
  • google

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

Cite the paper

@misc{sandler2019mobilenetv2invertedresidualslinear,
      title={MobileNetV2: Inverted Residuals and Linear Bottlenecks}, 
      author={Mark Sandler and Andrew Howard and Menglong Zhu and Andrey Zhmoginov and Liang-Chieh Chen},
      year={2019},
      eprint={1801.04381},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1801.04381}, 
}