ComfyUI_FaceAnalysis

ComfyUI_FaceAnalysis
★ 537

人脸识别特征比对相似度计算模型依赖
使用 DLib/InsightFace 提取人脸特征并计算两人脸向量的欧氏距离与余弦相似度,便于判断人脸相似度与验证;需先在 Install models 菜单安装模型。
💡 快速比较两张人脸的相似度与身份验证。
🍴 62 Forks💻 Python🔄 2025-05-20
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/c73fe210bae7
📦 requirements.txt
dlib
onnxruntime
insightface
color_matcher
face analysis
📄 README

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.

[!IMPORTANT]

2025.04.14 – I do not use ComfyUI as my main way to interact with Gen AI anymore as a result I’m setting the repository in “maintenance only” mode. If there are crucial updates or PRs I might still consider merging them but I do not plan any consistent work on this repo.

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.

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