mobilefacenet
Compact CNN that maps a face image to an embedding, using a global depthwise convolution in place of average pooling.
Image classification · 38 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.
At a glance
- Task
- Image classification
- Parameters
- 259.3K
- Operations
- 38
- Framework
- PyTorch
- Recurrent
- No
- Published
- Lecture Notes in Computer Science (arXiv 2018)
- Cited by
- 770 (as of 9 October 2026)
- Authors
- Sheng Chen, Yang Liu, Xiang Yang Gao, Zhen Han
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m12027
- Graph hash
- 78d6355e54352b4a0bef2fedc274950f32c373d4689f3b5d2d4b7c4277cb7563
- Skeleton hash
- ab9f9718d12878c335bbabf140cf362af00d81425a44c988c116e6c3e48798e1
- Architecture hash
- d36b6b12aa2ec842fa0c64ebe59d409dc025428e007cc16e040afb987bd5440d
- Diagram SHA-256
- 125c0d615cb14988f1ddefc677eb2ae680d4e8dba4d63c0a147761c073793e3f
- 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
menagerie.classics.mobilefacenet:build_mobilefacenet: build({}) What it is
MobileFaceNets are a class of small CNN models built for real-time face verification on mobile and embedded devices, and the paper reports that they use less than 1 million parameters. The paper starts from the finding that common mobile networks, used unchanged for face verification, reach only very inferior accuracy in the authors' experiments.
The authors locate the weakness in the global average pooling layer, which treats all units of the last feature map with equal importance. MobileFaceNet replaces it with a global depthwise convolution (GDConv), a depthwise convolution whose kernel size equals the input size. The paper shows that GDConv learns very different importances at different spatial positions after training. The rest of the network is assembled from the residual bottlenecks of MobileNetV2, with PReLU as the non-linearity.
The paper reports that its primary MobileFaceNet has a computational cost of 221 million MAdds and uses 0.99 million parameters. Trained with ArcFace loss on the refined MS-Celeb-1M, a single MobileFaceNet of 4.0MB is reported to reach 99.55% accuracy on LFW and 92.59% TAR at FAR 1e-6 on MegaFace. The fastest of the MobileFaceNets has a reported inference time of 18 milliseconds on a mobile phone.
Key idea. The paper replaces global average pooling with a global depthwise convolution in a compact face embedding CNN, so that positions of the final feature map are weighted differently.
- MobileFaceNet
- MobileFaceNets
- face verification
- face recognition
- face embedding
- mobile face recognition
- global depthwise convolution
- GDConv
- mobile CNN
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chen2018mobilefacenetsefficientcnnsaccurate,
title={MobileFaceNets: Efficient CNNs for Accurate Real-Time Face Verification on Mobile Devices},
author={Sheng Chen and Yang Liu and Xiang Gao and Zhen Han},
year={2018},
eprint={1804.07573},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1804.07573},
}