cosanlab/py-feat
Facial Expression Analysis Toolbox
What it solves
Py-FEAT provides a comprehensive toolkit for facial expression (FEX) research, simplifying the process of extracting emotional and physical facial data from images and videos.
How it works
The library uses pretrained models (automatically downloaded from HuggingFace) to detect faces and extract specific facial features, including:
- Emotional expressions (e.g., happiness, sadness, anger).
- Facial muscle movements (known as action units).
- Facial landmarks.
It supports hardware acceleration on CPU, NVIDIA GPUs (CUDA), and Apple Silicon (MPS).
Who it’s for
Researchers and developers working in facial expression analysis, psychology, and computer vision.
Highlights
- Automated weight management: Model weights are downloaded automatically as needed.
- Cross-platform hardware support: Compatible with CUDA and Metal (MPS) for faster processing.
- End-to-end pipeline: Includes tools for detection, extraction, preprocessing, analysis, and visualization of facial data.
Related
- Project
yakhyo/unifaceUniFace is a Python library that unifies 15 face‑analysis tasks—detection, landmarks, 3‑D mesh, parsing, matting, gaze, head pose, demographics, emotion, quality, anti‑spoofing, recognition, anonymisation, and FAISS‑based similarity—into a single, easy‑to‑install package (CPU, Apple Silicon, or CUDA). It provides a consistent API, auto‑downloads verified model weights, and includes extensive docs, notebooks, and a community Discord.
- Dispatch
Getting Started with Sentiment Analysis using PythonHugging Face provides a comprehensive guide on implementing sentiment analysis using Python, leveraging pre-trained models from the Hugging Face Hub, the Trainer API for fine-tuning, and the no-code AutoNLP tool.
- Project
serengil/deepfaceA lightweight Python framework for face recognition and facial attribute analysis that wraps multiple state-of-the-art models for identity verification and demographic prediction.
- Project
- Project
deepinsight/insightfaceInsightFace is an open‑source 2D/3D face analysis library offering detection, recognition, alignment, video redaction, person‑level matching, and a self‑hosted server with REST API. Implemented in PyTorch/MXNet, it provides pretrained models, automatic hardware backend selection, and tools for large‑scale face search.