2024-02-15 21:31:51 -08:00
2024-02-15 21:31:51 -08:00
2024-02-14 09:24:44 -08:00
2024-02-14 21:40:59 -08:00
2024-02-15 21:27:52 -08:00

ComfyUI Deepface

ComfyUI nodes wrapping the deepface library.

Requirements

Install dependencies:

pip install -r requirements.txt

Nodes

Deepface Extract Faces

TODO: document

Deepface Verify

Given a set of input images and a set of reference (face) images, only output the input images with an average distance to the faces in the reference images less than or equal to the specified threshold. Output images are sorted by average distance to the reference image faces (nearest first).

  • Outputs:
    • verified_images images that contain faces below the threshold, sorted from smallest distance to largest
    • verified_image_distances numbers of the average distance from the input image face to each reference image face
    • rejected_images images that contain faces above (or equal to) the threshold value for distance, sorted from smallest distance to largest
    • rejected_image_distances numbers of the average distance from the input image face to each reference image face

verify workflow

Nodes from was-node-suite-comfyui and pythongosssss can be used to display the output distances:

verify with distances workflow

Credits

Inspired by CeFurkan's use of deepface to evaluate finetuning outputs. 🙌

S
Description
No description provided
Readme MIT
7.1 MiB
Languages
Python 100%