timesler/facenet-pytorch

Pretrained Pytorch face detection (MTCNN) and facial recognition (InceptionResnet) models

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 53 minutes ago
Added to GitGenius on September 13th, 2026
Created on May 25th, 2019
Open Issues & Pull Requests: 85 (+0)
GitHub issues: Enabled
Number of forks: 1,000
Total Stargazers: 5,168 (+0)
Total Subscribers: 51 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 104.0 days
Mean response time: 148.9 days
90th percentile: 496.5 days
Tracked items: 9

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 12
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 828 days
Stale 30+ days: 12
Stale 90+ days: 11

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • good first issue (1)
  • help wanted (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

facenet-pytorch is a PyTorch library that provides pretrained face detection and facial recognition models.

The library addresses the need for efficient face detection and recognition by combining two key components. It includes an Inception Resnet V1 model pretrained on VGGFace2 and CASIA-Webface datasets for facial recognition, with model weights ported from an established TensorFlow implementation. For the detection stage, it provides a PyTorch implementation of MTCNN that the documentation describes as the fastest available, allowing faces to be located and cropped before recognition inference. Both models are pretrained and automatically downloaded and cached on first use, requiring only instantiation to begin processing images.

Developers should adopt this tool if they need a complete face detection and recognition pipeline in PyTorch with minimal setup. The library suits projects requiring facial identification, face tracking in video streams, or fine-tuning on custom datasets. The pretrained models work best on 160x160 pixel images and perform optimally when faces are cropped using the included MTCNN detector. The tool can output either 512-dimensional embeddings for recognition tasks or classification logits when enabled, providing flexibility for different use cases.

The project maintains active engagement with its codebase through regular updates and documentation improvements. Example notebooks covering complete detection and recognition pipelines, video-based face tracking, model fine-tuning, and performance comparisons are provided to guide users through common workflows. The repository includes detailed implementation guides for both MTCNN and the recognition models, along with documentation of the parameter conversion process from the original TensorFlow implementation.