nosiu / comfyui-instantId-faceswap

Implementation of faceswap based on InstantID for ComfyUI.
Apache License 2.0
157 stars 14 forks source link

No face detected for face embed #22

Open missevolintro opened 3 months ago

missevolintro commented 3 months ago

Error occurred when executing FaceEmbed: No face detected for face embed Only does it sometimes for the first FaceEmbed 1 node. But once it starts you have to restart comfyUI completely to get it to stop.

nosiu commented 3 months ago

It's a similar error to the one from readme. If you get No face detected in pose image error try to increase padding. It means the current mask + padding is not enough to detect the face in the input image by insightface.

This error typically occurs when InsightFace fails to detect a face in the image connected to the face embed node (which should be highlighted in red or another distinguishable color). Since version 0.0.3, you can resolve this issue by replacing the image with another one or simply deleting the node and queuing another run.

'No face' error signifies that the embed cannot be created.

leobridle commented 3 months ago

I am also getting this error consistently. Increasing padding doesn't make a difference, not restarting ComfyUI. I have tried with multiple input images

nosiu commented 3 months ago

@leobridle padding will not help when a face embed cannot find the face. This error occurs only when preparing the face embeds. Padding works only on "pose image" it's the image where you paint the mask.