cubiq / ComfyUI_IPAdapter_plus

GNU General Public License v3.0
3.14k stars 237 forks source link

Skip images where no faces are detected, instead of directly raising an Exception. #539

Open mymusise opened 1 month ago

mymusise commented 1 month ago

When I want to input multiple reference photos for FaceID, if one of the photos fails to detect a face, it will raise an exception with the message ('InsightFace: No face detected').

For instance, in the example below, only the photo in the bottom right corner fails to detect a face; the others work fine. screenshot-20240507-193433

Therefore, I am wondering if it might be possible to skip the inputs where faces are not detected and just keep those where faces are detected. Would that be okay?