Key capabilities
- Fast face detection: BlazeFace-based detector with short (~2 m) and full (~5 m) range variants
- 478 facial landmarks: dense FaceMesh v2 keypoints per detected face
- ARKit-52 blendshapes: real-time facial expression coefficients
- Face region masks: per-region masks for face oval, lips, eyes, and irises
- Face bounding boxes: outputs compatible with
DrawBBoxesfor bounding box visualization
Scope: Face detection only: BlazeFace + FaceMesh v2 + ARKit blendshapes. This does not cover hand, pose, or holistic detection.
MediaPipe Face Detection Workflow
Mediapipe: Image Face Detection
Input an image and detect up to 6 facial landmarks per face, enabling ultrafast multi-face detection.
Run on Comfy Cloud
Open in Comfy Cloud
Download Workflow
Download JSON or search “Mediapipe: Image Face Detection” in Template Library
LoadImage node:
soft_neon_girl.png
LoadImage node 5 · soft_neon_girl.png
1. Download the Workflow
Update your ComfyUI to the latest version, then go toWorkflow → Browse Templates and find “Mediapipe: Image Face Detection” under the Utility category.
2. Download the Model
The MediaPipe Face Detection model is hosted on the Comfy-Org MediaPipe model repository. Place it in the following directory structure:3. Using the Workflow
This workflow uses a subgraph node that orchestrates face detection, visualization, and mask generation. The subgraph exposes the following controls:Learn about Subgraph
This workflow uses Subgraph nodes for modular processing. Check out the Subgraph documentation to learn how to customize and extend the workflow.
Subgraph parameters:
Mask toggles use custom mode internally: only checked regions are filled; multiple ON regions are unioned into one mask per frame.
Subgraph outputs:
4. Run the Workflow
- Ensure the model file is placed in
ComfyUI/models/detection/ - Load an image in the
Load Imagenode - Adjust detection parameters as needed
- Click
Queueor useCtrl(Cmd) + Enterto run - The workflow outputs the mesh overlay, bounding boxes, and mask preview
Community Resources
- MediaPipe GitHub: Upstream MediaPipe framework
- Comfy-Org/mediapipe: Official ComfyUI model weights
- ComfyUI Subgraph Guide: Learn how subgraphs work