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.
More from coding & agent
- Agents Automate Linting, Testing, and Prototyping — vykthur · 2026-08-23
- Ox Alpha recreates 3D glass webpage from a single image using WebGL — op7418 · 2026-08-23
- Omnisiv: A Minimal Index for AI Agents and MCP Servers — No-Oil-5039 · 2026-08-23
- Agent Memory Layer: Dedup, Recency, and Model Compatibility — ustype · 2026-08-23
- Agent Overhead: Context Resend and Reasoning Dominate Costs — entelligenceai17 · 2026-08-23
- Anthropic GA's Computer Use and Skills API for agents to operate software and apply expertise — krishnan · 2026-08-23