Skip to content

PrimateFace

Automated facial measurement across human and non-human primates.

Showcase & Video Demos bioRxiv Preprint Hugging Face Models Hugging Face Dataset GitHub

Looking for interactive video demos and project overview? Visit the PrimateFace Showcase & Video Demos.

PrimateFace (v1.0.0) is an open-source dataset, model collection, and Python toolkit for measuring primate faces in photos and videos—built for primatologists, behavioral ecologists, neuroscientists, and machine-learning researchers.

PrimateFace cross-species face detection and 68-point facial landmarks across primate clades

What PrimateFace does for your research

Instead of hand-coding frames in an ethogram spreadsheet or training a custom computer-vision model from scratch, PrimateFace lets you measure primate faces automatically:

  • Find primate faces in photos and videos across lemurs, lorises, tarsiers, monkeys, apes, and humans—drawing a tight box around each face (excluding ears, whose shape varies drastically across species).
  • Place 68 anatomical landmarks along the jaw, eyebrows, nose, eyes, and lips—or convert them to the 48-point human–macaque overlap schema used in older facial-landmark studies.
  • Quantify facial behavior directly—mouth opening, eye opening, brow height, facial symmetry, image quality, and 3D head orientation (yaw, pitch, roll)—normalized by eye-to-eye distance so measurements stay comparable when an animal moves closer to or farther from the camera.
  • Sort images by primate genus across 69 genera and tag six observable facial attributes (visible teeth, mouth openness, head tilt, apparent age class, head turn, and partial occlusion).
  • Export straight to the tools you already use—open results as a CSV spreadsheet in Excel or R, or export to DeepLabCut, Lightning Pose, SLEAP, COCO JSON (standard computer-vision annotation format), or NWB (Neurodata Without Borders, a standard neuroscience file format).

No deep-learning background or lab server required

You can try PrimateFace on your own photos or short videos in a web browser using free Google Colab—no software installation and no local graphics card (GPU) needed.

Just analyzing your own primate photos or videos? You do NOT need to download the 240,241-image dataset. PrimateFace automatically downloads only the compact pretrained models (41–137 MB) on first run.

Get started

Open one of our interactive notebooks in Google Colab to test PrimateFace on a free cloud GPU (graphics processor) directly from your browser:

  • New to PrimateFace? Start with the Quick Start notebook to upload a primate photo, plot 68 landmarks, and download a CSV table of facial measurements.
  • Working with video or behavior? Try the walkthroughs for lemur face-visibility time-stamping, macaque face recognition alignment, howler monkey vocal–motor coupling, and our multi-individual geometric interaction template.

Open the Interactive Tutorials

Once installed (Installation Guide), analyzing an image takes three lines of Python. Required pretrained weights download automatically on first run:

import primateface

pf = primateface.PrimateFace()
faces = pf.analyze("demos/ateles_000003.jpeg")
print(faces[0], faces[0].head_pose)

Expected output:

Face(score=0.96, bbox=[142, 68, 418, 355], landmarks=68) (4.8, -2.3, 1.1)

Read the Step-by-Step Quickstart

At a glance (v1.0.0)

Component What is included in v1.0.0 Plain-language summary
Curated dataset 240,241 real images · 291,231 verified faces · 69 genera across all 6 primate superfamilies Covers strepsirrhines, tarsiers, New World monkeys, Old World monkeys, apes, and humans (plus 36,360 training-only synthetic faces).
Permissive models 9 released checkpoints — permissively licensed (MIT / Apache-2.0 / BSD-3-Clause — safe for academic and commercial projects; zero AGPL) Free to use in academic and commercial labs without restrictive copyleft licensing.
Detection & landmarks RF-DETR-M detector (AP@0.50 = 0.961); ViTPose-L (0.58% median NME), RTMPose-M, HRNetV2-W18 AP@0.50 measures how reliably faces are found (1.0 is perfect); 0.58% NME (normalized mean error) is ~1 pixel of landmark error on a 200-pixel face.
4 pose ecosystems MMPose, DeepLabCut 3.0.2, Lightning Pose 2.0, and SLEAP-NN Pretrained 68-point weights and file converters so you can stay inside your lab's existing tracking toolkit.

Where to go next

If you want to… Go to
Install PrimateFace on your laptop, workstation, or cluster Installation Guide
Run your first photo, visualize landmarks, and export a CSV Quickstart Tutorial
Check what PrimateFace is—and is not—validated to measure Scope & Intended Use
Pick the best detector and landmark model for your hardware Pretrained Models
Run 69-genus classification or facial-attribute tagging Genus & Attributes
Convert between 68-point and 48-point landmark schemas Landmark Conversion
Compute kinematics, head pose, symmetry, or export to DLC / SLEAP / NWB Analysis & Data Export
Use PrimateFace weights in DeepLabCut, Lightning Pose, or SLEAP Framework Integration
Label your own species faster with the GUI or DINOv2 frame selector Annotation & Frame Selection
Explore dataset access, benchmarks, API docs, or reproducibility Dataset · Evaluation · API · Reproducibility

Community, support & citation

Citing PrimateFace

If PrimateFace contributes to a publication, please cite Parodi et al. (2025) and review Scope & Intended Use for responsible reporting guidance. Full BibTeX and links to the Hugging Face models, Hugging Face dataset, and GitHub repository are on the Paper & Citation page.