Files

38 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ComfyUI Face Similarity
A custom node for ComfyUI. It compare two images to rate facial similarity.
### Node Description:
Input: Two images
Output: A float value, range from 0 to 100, and the larger the value means higher the similarity. usually, exceeding 50 is considered very similar.
![image](image/face_similarity_example.png)
## How to install
* Open the cmd window in the plugin directory of ComfyUI, like ```ComfyUI\custom_nodes```,type
```
git clone https://github.com/chflame163/ComfyUI_FaceSimilarity.git
```
* Or download the zip file and extracted, copy the resulting folder to ```ComfyUI\custom_ Nodes```
* Install ```dlib``` dependency package. Open the cmd window in the ComfyUI_LayerStyle plugin directory like
```ComfyUI\custom_ Nodes\ComfyUI_FaceSimilarity```, If it is the latest official ComfyUI portable package, please enter:
```
..\..\..\python_embeded\python.exe -m pip install .\whl\dlib-19.24.1-cp311-cp311-win_amd64.whl
```
* Also provides ```dlib-19.22.99-cp310-cp310-win_amd64.whl``` in whl folder that is compatible with Python 3.10.x if your need.
* Next, enter the following command to install other dependency packages
```
..\..\..\python_embeded\python.exe -m pip install -r requirements.txt
```
* Restart ComfyUI.