All models

FaceNet

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

Image classification · 359 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 (26 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
7.5M
Operations
359
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
m974
Graph hash
aca8370bc48645a3e68e823f1ab44f06becee8bb357bce10023946a89423e824
Skeleton hash
fff7597344ac7d0be49b94672732dd92128c27086c4e2a9bebb6716e3af9b3d2
Architecture hash
097ca5a7026b680ce6ce4bb96e7618fbb475d65886f78d85fdf69384cfd01589
Diagram SHA-256
0c9cc258ccbca792ce8416c842d010aaab44b65049763457b2faefd0f1ee4560
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

FaceNet here returns a 128-dimensional embedding, matching the paper's 128-bytes per face.

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}, 
}