All models

FaceID-Net (FaceNet)

FaceNet maps a face photo to a compact embedding whose distances measure face similarity.

Image classification · 451 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 (53 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

Family
FaceNet
Parameters
23.5M
Operations
451
Framework
PyTorch
Recurrent
No
Published
CVPR 2015
Cited by
15,234 (as of 19 October 2026)
Authors
Florian Schroff, Dmitry Kalenichenko, James Philbin
License
MIT
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
m16616
Graph hash
9a62f13c088ea23a64f79b79fe7bf393b90def4f00972d01f2086453477b0b1c
Skeleton hash
72ffd7c1b8c1a78e8e465357a90996a3fd493913833fa7be7e523fc0ba7541a3
Architecture hash
0aba352c6922d0d77d540c172895c9522e6357dd15aaa3ff63d6b53177197c77
Diagram SHA-256
3227de706df2305438f7c3743d62ed713dc0848bc0d59efa70ef040349f6e64e
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

FaceID-Net is the Inception Resnet (V1) of facenet-pytorch, whose models by default return 512-dimensional embeddings of images.

About this model's family

FaceNet is a face recognition network that maps a face image to a point in a compact Euclidean space, where the distance between two points directly measures how similar the faces are. Once that space exists, recognition, verification and clustering become standard techniques applied to the embedding vectors.

The network is a deep convolutional network trained to optimize the embedding itself rather than an intermediate bottleneck layer, as earlier deep learning approaches had done. Training uses triplets of roughly aligned matching and non-matching face patches, chosen by an online triplet mining method. The paper reports face recognition using only 128-bytes per face. On the Labeled Faces in the Wild dataset the paper reports 99.63% accuracy, and 95.12% on YouTube Faces DB.

The two networks on this page follow open-source reimplementations. One follows the TensorFlow implementation of the face recognizer described in the paper, which also uses ideas from the Deep Face Recognition paper of the Visual Geometry Group. The other follows facenet-pytorch, whose weights were initialized from parameters ported from that TensorFlow code. Its pretrained Inception Resnet (V1) models were trained on 160x160 pixel images, so they perform best on images resized to that shape.

Key idea. FaceNet learns a direct mapping from face images to a compact Euclidean space where distances correspond to face similarity, trained with online triplet mining.

  • facenet
  • face recognition
  • face embedding
  • face verification
  • triplet loss
  • inception resnet v1
  • facenet-pytorch
  • face clustering
  • faceid-net

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

Cite the paper

@misc{schroff2015facenetunifiedembeddingface,
      title={FaceNet: A Unified Embedding for Face Recognition and Clustering}, 
      author={Florian Schroff and Dmitry Kalenichenko and James Philbin},
      year={2015},
      eprint={1503.03832},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1109/CVPR.2015.7298682},
      url={https://arxiv.org/abs/1503.03832}, 
}