facenet-pytorch
Pretrained Pytorch face detection and recognition models
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is well-maintained for its scope (5160 GitHub stars, low install friction, no known vulnerabilities), but maintenance is aging—the last release was April 2024. Install it if you need pretrained face detection and recognition models and can accept that bug fixes or compatibility updates may lag behind new PyTorch releases. For production systems requiring active support, verify compatibility with your PyTorch version first.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires torch and torchvision; pretrained models are downloaded automatically on first use and cached.
- Low friction install with a pure Python wheel.
- Maintenance is aging—last release was April 2024 with last commit September 2025, though the repository remains active with 5160 stars and is not archived.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing commercial and private use with minimal restrictions.
last release 2024-04-29 (837 days) · last repo commit 2025-09-16 · 5,160 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 154,911 downloads/mo, #10,839 on PyPI
Alternatives
Verify before relying
pip install facenet-pytorch
from facenet_pytorch import MTCNN, InceptionResnetV1
mtcnn = MTCNN(image_size=160)
resnet = InceptionResnetV1(pretrained='vggface2').eval()
img_cropped = mtcnn(img)
img_embedding = resnet(img_cropped.unsqueeze(0))- Compatibility with PyTorch versions released after April 2024.
- GPU memory requirements for batch processing and model inference.
- Whether the package supports modern Python versions beyond what classifiers declare.
What it is and what it does
facenet-pytorch wraps pretrained Inception ResNet V1 models (trained on VGGFace2 and CASIA-Webface datasets) and an efficient MTCNN face detector into a PyTorch package. The models are ported from an external TensorFlow implementation and automatically download and cache their weights on first use. You use it to detect faces in images, extract 512-dimensional face embeddings for recognition tasks, or classify faces into known identities.
The package handles the full pipeline: MTCNN crops and aligns faces from raw images, then Inception ResNet V1 generates embeddings or classification logits. Both models are pretrained and ready to use without training. You can also finetune the models on new data or use the embeddings with clustering or distance metrics to identify faces. The package includes examples for video face tracking, batch processing, and performance comparisons.
Use it for
- Extract face embeddings from images for identity verification or clustering unknown faces.
- Detect and locate faces in images or video frames using MTCNN before downstream processing.
- Build a face recognition system by comparing embeddings against a known face database.
- Finetune pretrained models on custom face datasets for domain-specific recognition tasks.
- Track faces across video frames using MTCNN's detection output.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is well-maintained for its scope (5160 GitHub stars, low install friction, no known vulnerabilities), but maintenance is aging—the last release was April 2024. Install it if you need pretrained face detection and recognition models and can accept that bug fixes or compatibility updates may lag behind new PyTorch releases. For production systems requiring active support, verify compatibility with your PyTorch version first.
Install
facenet-pytorch on PyPI
Before you install
Low friction install with a pure Python wheel. Maintenance is aging—last release was April 2024 with last commit September 2025, though the repository remains active with 5160 stars and is not archived.
Requires torch and torchvision; pretrained models are downloaded automatically on first use and cached.
License in practice
Licensed under MIT (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install facenet-pytorch
from facenet_pytorch import MTCNN, InceptionResnetV1
mtcnn = MTCNN(image_size=160)
resnet = InceptionResnetV1(pretrained='vggface2').eval()
img_cropped = mtcnn(img)
img_embedding = resnet(img_cropped.unsqueeze(0))
Verify before relying
- Compatibility with PyTorch versions released after April 2024.
- GPU memory requirements for batch processing and model inference.
- Whether the package supports modern Python versions beyond what classifiers declare.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesnumpyPillowrequeststorchtorchvisiontqdm |
| Maintenance | Aging 837 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 154,911 / month, #10,839 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: facenet_pytorch-2.6.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “face recognition embedding”
- facenet-pytorchProvides pretrained PyTorch models for face detection using MTCNN and…
- face_recognition_modelsProvides pre-trained deep learning models for face detection,…
- insightfaceInsightFace is a Python library for face detection, recognition,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also pretrainedmodels · pytorchcv · mtcnn · face_recognition_models · face-recognition · deepface · retina-face · pytorch-fid · effdet · retinaface-py