
FaceNet
Image classification359 ops7.5M params
FaceNet maps a face photo to a compact embedding whose distances measure face similarity.
Image classification · 451 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.
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.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}