dchatel / comfyui_facetools

These custom nodes provide a rotation aware face extraction, paste back, and various face related masking options.
MIT License
66 stars 8 forks source link

HOW TO delete empty images in batch if no face detected? #23

Open Maelstrom2014 opened 1 month ago

Maelstrom2014 commented 1 month ago

Please tell HOW TO delete empty images in batch (after face detect) if no face detected? ipadapter makes error on empty images images.

dchatel commented 1 month ago

It's a dirty hack to avoid running into an error when no faces are detected. Never got really satisfied with it. DetectFaces should really return None if no faces are detected. But then the following standard workflow would not work. I need to think this a bit more.