Make It Count: Text-to-Image Generation with an Accurate Number of Objects
Lital Binyamin, Yoad Tewel, Hilit Segev, Eran Hirsch, Royi Rassin and, Gal Chechik

TL;DR
This paper introduces CountGen, a novel method for text-to-image generation that accurately controls the number of objects depicted, addressing a key challenge in maintaining object identity and count consistency during diffusion-based image synthesis.
Contribution
CountGen identifies features within diffusion models to track object identities and uses a shape and location predictor to ensure correct object counts without external layout sources.
Findings
CountGen significantly improves object count accuracy over baselines.
The method effectively detects and corrects over- and under-generation of objects.
CountGen works with prompt-dependent and seed-dependent layouts.
Abstract
Despite the unprecedented success of text-to-image diffusion models, controlling the number of depicted objects using text is surprisingly hard. This is important for various applications from technical documents, to children's books to illustrating cooking recipes. Generating object-correct counts is fundamentally challenging because the generative model needs to keep a sense of separate identity for every instance of the object, even if several objects look identical or overlap, and then carry out a global computation implicitly during generation. It is still unknown if such representations exist. To address count-correct generation, we first identify features within the diffusion model that can carry the object identity information. We then use them to separate and count instances of objects during the denoising process and detect over-generation and under-generation. We fix the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsVideo Analysis and Summarization · Human Motion and Animation · Image Retrieval and Classification Techniques
MethodsDiffusion
