Skip to content
module

MobileNet

12 members
lucid.models.vision.mobilenet

MobileNet v1 family — Howard et al., 2017.

Image Classification
Paper

Howard, Andrew G., et al. "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications." arXiv preprint [arXiv:1704.04861](https://arxiv.org/abs/1704.04861), 2017.

Overview

MobileNet is built around the depthwise separable convolution, a factorisation that decomposes a standard convolution into two much cheaper stages: a per-channel depthwise 3×33 \times 3 spatial filter followed by a 1×11 \times 1 pointwise convolution that mixes channels. For an input of MM channels and an output of NN channels with kernel size DKD_K, the cost drops from DK⋅DK⋅M⋅N⋅DF⋅DFD_K \cdot D_K \cdot M \cdot N \cdot D_F \cdot D_F to

DK⋅DK⋅M⋅DF⋅DF  +  M⋅N⋅DF⋅DF,D_K \cdot D_K \cdot M \cdot D_F \cdot D_F \;+\; M \cdot N \cdot D_F \cdot D_F,

a reduction of roughly 1/N+1/DK21/N + 1/D_K^2. For DK=3D_K = 3 and the typical NN of a few hundred, that is an 8–9× FLOPs saving with only a small accuracy loss on ImageNet.

Two scalar hyper-parameters expose a smooth accuracy–latency trade-off curve at inference time without retraining the whole family. The width multiplier α∈(0,1]\alpha \in (0, 1] uniformly thins every layer (input and output channels become αM\alpha M and αN\alpha N), giving four standard variants at α∈{1.0,0.75,0.5,0.25}\alpha \in \{1.0, 0.75, 0.5, 0.25\}. The resolution multiplier ρ\rho rescales the input spatial size — it does not change the model itself, only the feature maps flowing through it, and is therefore not enforced inside the network.

Together these two knobs let MobileNet-v1 cover a wide spectrum of mobile/embedded budgets from sub-mW edge devices up to desktop-class deployment, while keeping a single training recipe and a single MobileNetConfig schema.

Classes

Functions

Weights