py-feat / facenet

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 2
Model's Last Updated: September 02 2024
image-feature-extraction

Introduction of facenet

Model Details of facenet

FaceNet

Model Description

facenet uses an Inception Residual Masking Network pretrained on VGGFace2 to classify facial identities. Facenet also exposes a 512 latent facial embedding space.

Model Details
  • Model Type : Convolutional Neural Network (CNN)
  • Architecture : Inception Residual masking network. Output layer classifies facial identities. Also provides a 512 dimensional representation layer
  • Input Size : 112 x 112 pixels
  • Framework : PyTorch
Model Sources
Citation

If you use this model in your research or application, please cite the following paper:

F. Schroff, D. Kalenichenko, J. Philbin. FaceNet: A Unified Embedding for Face Recognition and Clustering, arXiv:1503.03832, 2015.

@inproceedings{schroff2015facenet,
  title={Facenet: A unified embedding for face recognition and clustering},
  author={Schroff, Florian and Kalenichenko, Dmitry and Philbin, James},
  booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
  pages={815--823},
  year={2015}
}
Acknowledgements

We thank Tim Esler and David Sandberg for sharing their code and training weights with a permissive license.

Example Useage
import numpy as np
import torch
import torch.nn as nn
from feat.identity_detectors.facenet.facenet_model import InceptionResnetV1
from huggingface_hub import hf_hub_download

device = 'cpu'
identity_detector = InceptionResnetV1(
            pretrained=None,
            classify=False,
            num_classes=None,
            dropout_prob=0.6,
            device=device,
        )
identity_detector.logits = nn.Linear(512, 8631)
identity_model_file = hf_hub_download(repo_id='py-feat/facenet', filename="facenet_20180402_114759_vggface2.pth")
identity_detector.load_state_dict(torch.load(identity_model_file, map_location=device))
identity_detector.eval()
identity_detector.to(device)

# Test model
face_image = "path/to/your/test_image.jpg"  # Replace with your extracted face image that is [224, 224]

# 512 dimensional Facial Embeddings
identity_embeddings = identity_detector.forward(extracted_faces)

Runs of py-feat facenet on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
2
30-day runs

More Information About facenet huggingface.co Model

More facenet license Visit here:

https://choosealicense.com/licenses/mit

facenet huggingface.co

facenet huggingface.co is an AI model on huggingface.co that provides facenet's model effect (), which can be used instantly with this py-feat facenet model. huggingface.co supports a free trial of the facenet model, and also provides paid use of the facenet. Support call facenet model through api, including Node.js, Python, http.

py-feat facenet online free

facenet huggingface.co is an online trial and call api platform, which integrates facenet's modeling effects, including api services, and provides a free online trial of facenet, you can try facenet online for free by clicking the link below.

py-feat facenet online free url in huggingface.co:

https://huggingface.co/py-feat/facenet

facenet install

facenet is an open source model from GitHub that offers a free installation service, and any user can find facenet on GitHub to install. At the same time, huggingface.co provides the effect of facenet install, users can directly use facenet installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

facenet install url in huggingface.co:

https://huggingface.co/py-feat/facenet

Url of facenet

facenet huggingface.co Url

Provider of facenet huggingface.co

py-feat
ORGANIZATIONS

Other API from py-feat

huggingface.co

Total runs: 6.5K
Run Growth: -667
Growth Rate: -10.34%
Updated:September 02 2024
huggingface.co

Total runs: 3.4K
Run Growth: -632
Growth Rate: -18.38%
Updated:September 02 2024
huggingface.co

Total runs: 34
Run Growth: -2
Growth Rate: -6.25%
Updated:September 02 2024
huggingface.co

Total runs: 33
Run Growth: -6
Growth Rate: -18.75%
Updated:September 02 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:September 02 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 01 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 07 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 30 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 02 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 02 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 02 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 01 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 02 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 27 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 07 2026