S3FD
A single-shot face detector on VGG16 that spreads anchors over six layers so small faces are also detected.
Detection and tracking · 133 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
- Parameters
- 22.5M
- Operations
- 133
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICCV 2017
- Authors
- Shifeng Zhang, Xiangyu Zhu, Zhen Lei and others
- Source
- GitHub: sfzhang15/SFD
- 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
- m19912
- Graph hash
- 2903ac5af809d6a80281c5b6ff71af821f1cb75a2469f92dd0841ecbc0d28015
- Skeleton hash
- 906132b18ecf3a139993eeeb7f97d14b0c6178b74e539e438457afe2e5c49cb9
- Architecture hash
- 3ff365b31635bb16310adfed30e1a5142e1e453d2418ae07f3ecee4bb6fdbbbd
- Diagram SHA-256
- 3557a11e10f7c233733ddcba02f4b30490c063a25e99344f3f426812114f1be3
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
S3FD, the Single Shot Scale-invariant Face Detector, is a real-time face detector that handles faces of various scales with a single deep neural network. It targets a common problem: anchor-based detectors deteriorate dramatically as the objects become smaller.
The architecture is based on VGG16, with fc6 and fc7 converted to convolutional layers and extra convolutional layers added behind them. Anchors are tiled on a wide range of layers whose stride sizes run from 4 to 128 pixels, so that faces of various scales have enough features for detection. Anchor scales run from 16 to 512 pixels and are set from the effective receptive field of each layer and an equal-proportion interval principle.
To raise the recall of small faces, anchor matching lowers the overlap threshold from 0.5 to 0.35 so that more anchors are matched on average. To reduce false positives, the lowest detection layer predicts several background scores for each of its anchors and keeps the highest, which the paper calls a max-out background label. The paper counts 34,125 anchors for a 640 × 640 image, about 75% of them on that lowest layer. The authors report a speed of 36 FPS on a Nvidia Titan X (Pascal) for VGA-resolution images.
Key idea. S3FD tiles anchors over a wide range of layers and adds scale compensation anchor matching and a max-out background label so one network detects faces of different scales.
- S3FD
- SFD
- Single Shot Scale-invariant Face Detector
- face detection
- face detector
- small faces
- anchor-based detector
- max-out background label
- WIDER FACE
- S3FD.pytorch
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2017s3fdsingleshotscaleinvariant,
title={S$^3$FD: Single Shot Scale-invariant Face Detector},
author={Shifeng Zhang and Xiangyu Zhu and Zhen Lei and Hailin Shi and Xiaobo Wang and Stan Z. Li},
year={2017},
eprint={1708.05237},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1708.05237},
}