All models

iresnet

A residual CNN backbone that maps a normalized face crop to a 512-D embedding for face recognition.

Image classification · 35 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 (51 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
1.4M
Operations
35
Framework
PyTorch
Recurrent
No
Published
CVPR 2019
Cited by
7,710 (as of 9 October 2026)
Authors
Jiankang Deng, Jia Guo, Jing Yang and others
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
m11938
Graph hash
d21fc8ba870158ad0a9be4aaedca439c5c186729f4bc99f27c96258041a661e9
Skeleton hash
fbc991f27e08d95598558c2215cf0b48ee3ed1c85ad4be9d588b4018cc854c6a
Architecture hash
e47e11b60b7aa0416aa6dd9e9f6bc131fc4bcfdc89cdef1b563498a7dfd23aee
Diagram SHA-256
d0a20cb3fd63cf813c0dfe21e0f88878c8d14e24fae1f501bda4c586f6319c18
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.iresnet:build_iresnet: build({})

What it is

This model is a face recognition backbone: a residual CNN that maps a normalized face crop to an embedding vector, the kind of embedding network the ArcFace paper trains. The paper uses ResNet50 and ResNet100 without the bottleneck structure, on normalized face crops of 112 × 112 pixels. After the last convolutional layer, a BN-Dropout-FC-BN stage produces the final 512-D embedding feature.

The paper's own subject is the loss such a network is trained with. ArcFace, an Additive Angular Margin Loss, adds a margin to the angle between a face feature and its target class center and then converts the result back to a logit with the cosine function. In the paper's experiments the feature scale s is set to 64 and the angular margin m to 0.5.

The classification layer is only needed for training. At test time the paper keeps only the embedding network, without the fully connected layer, and extracts the 512-D features for each normalized face, which it times at 8.9 ms/face for ResNet50 and 15.4 ms/face for ResNet100.

Key idea. The paper introduces ArcFace, an additive angular margin loss that adds a margin to the angle between a face feature and its class center to make embeddings more discriminative.

  • iresnet
  • improved residual backbone
  • arcface
  • arcface backbone
  • face recognition
  • face embedding
  • face verification
  • additive angular margin loss
  • insightface

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

Cite the paper

@misc{deng2022arcfaceadditiveangularmargin,
      title={ArcFace: Additive Angular Margin Loss for Deep Face Recognition}, 
      author={Jiankang Deng and Jia Guo and Jing Yang and Niannan Xue and Irene Kotsia and Stefanos Zafeiriou},
      year={2022},
      eprint={1801.07698},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1109/TPAMI.2021.3087709},
      url={https://arxiv.org/abs/1801.07698}, 
}