ComfyUI > Nodes > ComfyUI Deepface > Deepface Verify

ComfyUI Node: Deepface Verify

Class Name

DeepfaceVerify

Category
deepface
Author
jordoh (Account age: 5658days)
Extension
ComfyUI Deepface
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

Deepface Verify Description

Facilitates facial recognition by comparing input images to references, providing verification status and likeness metrics.

Deepface Verify:

The DeepfaceVerify node is designed to facilitate facial recognition and verification by comparing a set of input images against reference images. This node leverages advanced facial recognition models to determine the similarity between faces, providing a verification status and a distance metric that quantifies the likeness. The primary goal of this node is to enable users to authenticate identities or verify the presence of specific individuals in a collection of images. By utilizing various detector backends and model options, DeepfaceVerify offers flexibility and precision in facial verification tasks, making it a valuable tool for AI artists who need to incorporate facial recognition capabilities into their projects.

Deepface Verify Input Parameters:

images

This parameter represents the collection of images that you want to verify against the reference images. Each image in this set will be compared to the reference images to determine if it matches any of them. The quality and resolution of these images can impact the accuracy of the verification process.

reference_images

These are the images that serve as the baseline for comparison. The node will attempt to verify if the faces in the input images match any of the faces in these reference images. The choice of reference images is crucial as it directly affects the verification results.

distance_threshold

This parameter sets the maximum allowable distance between the input image and the reference image for a match to be considered verified. It is a floating-point number with a default value of 0.6, ranging from 0.0 to 1.0. A lower threshold means stricter matching criteria, potentially reducing false positives but increasing false negatives.

ratio_threshold

The ratio threshold determines the minimum proportion of reference images that must verify an input image for it to be considered a match. It is a floating-point number with a default value of 0.7, ranging from 0.0 to 1.0. Adjusting this threshold can help balance between sensitivity and specificity in verification.

detector_backend

This parameter specifies the facial detection backend to use, with options including "opencv", "ssd", "dlib", "mtcnn", "retinaface", "mediapipe", "yolov8", "yunet", and "fastmtcnn". The default is "ssd". Different backends may offer varying levels of accuracy and speed, so selecting the appropriate one can optimize performance based on your specific needs.

model_name

This parameter allows you to choose the facial recognition model to use for verification. Options include "VGG-Face", "Facenet", "Facenet512", "OpenFace", "DeepFace", "DeepID", "ArcFace", "Dlib", and "SFace", with "VGG-Face" as the default. Each model has its strengths and weaknesses, so selecting the right model can enhance the accuracy of the verification process.

Deepface Verify Output Parameters:

verified_images

This output contains the images from the input set that were successfully verified against the reference images. These are the images that met the criteria set by the distance and ratio thresholds.

verified_image_distances

This output provides the distance metrics for each verified image, indicating how closely each input image matched the reference images. Lower distances suggest a higher degree of similarity.

verified_image_verified_ratios

This output gives the ratio of reference images that verified each input image, providing insight into the consistency of the verification across different reference images.

rejected_images

This output includes the images from the input set that did not meet the verification criteria. These images either exceeded the distance threshold or did not meet the ratio threshold.

rejected_image_distances

This output lists the distance metrics for each rejected image, which can help diagnose why certain images failed verification.

rejected_image_verified_ratios

This output shows the ratio of reference images that verified each rejected image, offering additional context for the rejection.

Deepface Verify Usage Tips:

  • Ensure that the reference images are of high quality and representative of the faces you wish to verify to improve accuracy.
  • Experiment with different detector backends and models to find the combination that best suits your specific verification needs.
  • Adjust the distance and ratio thresholds to fine-tune the balance between false positives and false negatives based on your project's requirements.

Deepface Verify Common Errors and Solutions:

ValueError: No face detected

  • Explanation: This error occurs when the node is unable to detect any faces in the input images.
  • Solution: Ensure that the images are clear and well-lit, and consider using a different detector backend that might be more effective for your specific images.

Error: Model not found

  • Explanation: This error indicates that the specified model name is not available or incorrectly specified.
  • Solution: Double-check the model name for typos and ensure that the model is supported by the node. If necessary, install any missing models.

Error: Invalid distance threshold

  • Explanation: This error arises when the distance threshold is set outside the allowable range.
  • Solution: Adjust the distance threshold to be within the range of 0.0 to 1.0, ensuring it aligns with the node's requirements.

Deepface Verify Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Deepface
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.