Nodes Browser

ComfyDeploy: How Face Analysis for ComfyUI works in ComfyUI?

What is Face Analysis for ComfyUI?

This extension uses [a/DLib](http://dlib.net/) to calculate the Euclidean and Cosine distance between two faces. NOTE: Install the Shape Predictor, Face Recognition model from the Install models menu.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for Face Analysis for ComfyUI and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

Face Analysis for ComfyUI

This extension uses DLib or InsightFace to perform various operations on human faces.

The most obvious is to calculate the similarity between two faces. The best way to evaluate generated faces is to first send a batch of 3 reference images to the node and compare them to a forth reference (all actual pictures of the person). That will give you a baseline number that you can use to compare to generated images.

Installation

You need to install either InsightFace or Dlib (or both).

For DLIB download Shape Predictor, Face Predictor 5 landmarks, Face Predictor 81 landmarks and the Face Recognition models and place them into the dlib directory.

Precompiled Dlib for Windows can be found here.

face analysis

The extension also supports AuraFace that is a free alternative to InsightFace. Download all the files and place them under models/insightface/models/auraface/