cubiq / ComfyUI_FaceAnalysis

Extension for ComfyUI to evaluate the similarity between two faces
Apache License 2.0
225 stars 24 forks source link

Import failed struggling to find solution #26

Open bLAZYYYY opened 3 weeks ago

bLAZYYYY commented 3 weeks ago

Cannot solve this issue: image

Keep getting import failed

image

Ive installed dlib and followed instructions for all the dll files too:

image as you can see all dlib files in here: image

When i open up ComfyUI i get the following messages in cmd prompt: `Traceback (most recent call last): File "C:\Users\myname\Downloads\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1881, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\myname\Downloads\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_FaceAnalysis__init__.py", line 1, in from .faceanalysis import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "C:\Users\myname\Downloads\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_FaceAnalysis\faceanalysis.py", line 16, in raise Exception("Please install either dlib or insightface to use this node.") Exception: Please install either dlib or insightface to use this node.

Cannot import C:\Users\myname\Downloads\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_FaceAnalysis module for custom nodes: Please install either dlib or insightface to use this node.`

Not sure what im doing wrong its probably something really obvious any help would be appreciated.

lhovav commented 1 week ago

Hi, I had this issue too, I followed this repo under Troubleshooting follow his steps, after installing insightface, the nodes were visible for me...hope it will help

YuanGYao commented 23 hours ago

This indicates that you have only installed the extension and not dlib or insightface. you need to install one of these two for the extension to work properly.