
mobilenetv2_035
Image classification265 ops1.7M params
MobileNetV2: inverted residual blocks with linear bottlenecks for efficient mobile vision.
Image classification · 205 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.AutoModelForImageClassification.from_config()
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}