ComfyUI > Nodes > ComfyUI Deepface

ComfyUI Extension: ComfyUI Deepface

Repo Name

ComfyUI-Deepface

Author
jordoh (Account age: 5658 days)
Nodes
View all nodes(4)
Latest Updated
2026-02-01
Github Stars
0.04K

How to Install ComfyUI Deepface

Install this extension via the ComfyUI Manager by searching for ComfyUI Deepface
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Deepface in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI Deepface Description

ComfyUI Deepface integrates the deepface library into ComfyUI, enabling advanced facial recognition and analysis through user-friendly nodes, enhancing image processing capabilities.

ComfyUI-Deepface Introduction

ComfyUI-Deepface is an extension that integrates the powerful capabilities of the Deepface library into the ComfyUI environment. This extension is designed to help AI artists and developers easily perform face detection and verification tasks on images. By leveraging state-of-the-art face recognition models, ComfyUI-Deepface can accurately detect and verify faces in images, making it an invaluable tool for projects that require facial analysis. Whether you're working on digital art, animation, or any project involving human faces, this extension can streamline your workflow by automating face-related tasks.

How ComfyUI-Deepface Works

At its core, ComfyUI-Deepface uses the Deepface library, which is a comprehensive framework for face recognition and facial attribute analysis. The extension provides nodes that wrap around Deepface's functionalities, allowing you to perform tasks such as face extraction and verification directly within ComfyUI. The process involves detecting faces in input images, cropping them, and resizing them to a specified size. For verification, it compares input images against reference images to determine if they belong to the same person, based on a distance threshold.

ComfyUI-Deepface Features

Deepface Extract Faces

This feature allows you to extract faces from a set of input images. The detected faces are cropped and resized to a target size, which you can specify. If no face is detected, the original image is resized to the target size. You can choose from various face detection backends, such as "opencv", "ssd", "dlib", "mtcnn", "retinaface", and more, depending on your accuracy and performance needs.

  • Inputs:
  • images: The images from which faces will be extracted.
  • target_face_size: The desired size for the extracted faces.
  • detector_backend: The backend used for face detection.
  • enforce_detection: Determines whether to output the original image if no face is detected.
  • Outputs:
  • face_images: A batch of cropped face images.

Deepface Verify

This feature verifies whether the faces in a set of input images match those in a set of reference images. It outputs images that meet a specified distance threshold, sorted by their similarity to the reference images.

  • Outputs:
  • verified_images: Images that match the reference faces within the threshold.
  • verified_image_distances: Average distances between input and reference faces.
  • verified_image_verified_ratios: Ratios indicating the match quality.
  • rejected_images: Images that do not meet the threshold criteria.

ComfyUI-Deepface Models

ComfyUI-Deepface supports multiple face detection models, each suited for different scenarios. For instance, "retinaface" is known for its high accuracy, while "opencv" offers faster performance. Choosing the right model depends on your specific needs, such as the balance between speed and accuracy.

Troubleshooting ComfyUI-Deepface

If you encounter issues while using ComfyUI-Deepface, here are some common solutions:

  • No Faces Detected: Ensure that the images are clear and well-lit. Try switching to a different detection backend if the problem persists.
  • Verification Errors: Check the distance threshold settings and ensure that the reference images are of good quality.
  • Performance Issues: If the extension is slow, consider using a faster detection backend like "opencv" or reducing the target face size.

Learn More about ComfyUI-Deepface

To further explore the capabilities of ComfyUI-Deepface, you can refer to the Deepface GitHub repository for more detailed documentation on the underlying library. Additionally, engaging with community forums and tutorials can provide valuable insights and support for using this extension effectively in your projects.

ComfyUI Deepface Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

ComfyUI Deepface detailed guide | ComfyUI