Help: Creating a face count detection loop in ComfyUI workflow

Scardra · reddit · 2026-08-23

A user faces an issue where horizontal image generations in ComfyUI often contain multiple people despite the prompt specifying one. They are asking for help to create a conditional loop workflow: detect the number of faces in the generated image, and if it exceeds one, interrupt the process and regenerate to automatically filter out non-compliant images.

Original post →

More from coding & agent

coding & agent channel →