2024-02-20 17:47:55 +01:00
2024-02-20 17:25:22 +01:00
2024-02-20 17:25:22 +01:00
2024-02-20 17:25:22 +01:00
2024-02-20 17:25:22 +01:00
2024-02-20 17:25:22 +01:00
2024-02-20 17:25:22 +01:00
2024-02-20 17:25:22 +01:00
2024-02-20 17:18:42 +01:00
2024-02-20 17:47:55 +01:00
2024-02-20 17:25:22 +01:00

Face Analysis for ComfyUI

This extension uses DLib to calculate the Euclidean and Cosine distance between two faces.

Please read the results as follow:

  • Lower values are better
  • The minimum thresholds are: EUC 0.6, COS 0.07
  • In my tests a value of Euc <0.3 is very good

Installation

Please download the DLIB Shape Predictor and the Face Recognition models and place them into the dlib directory.

In this repository you also find a workflow that uses IPAdapter to generate a few images and return the distance to the reference fance.

face analysis

The extension of course requires dlib that has to be installed into the ComfyUI environment.

Important notes

There are many ways to do this. At the moment I'm using DLib as it's fast and easy to use, if there's an actual interest I will release more options (insightface?).

Also, I'm not an engineer and I don't know what I'm doing, hopefully someone more experienced can chime in.

S
Description
No description provided
Readme Apache-2.0
210 KiB
Languages
Python 100%