Make It Count: Text-to-Image Generation with an Accurate Number of Objects

Lital Binyamin, Yoad Tewel, Hilit Segev, Eran Hirsch, Royi Rassin +1 more
2/9/2026

No official code found. Best implementation: Litalby1/make-it-count (96 stars, last commit 2025-03-12).

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 latter by training a model that predicts both the shape and location of a missing object, based on the layout of existing ones, and show how it can be used to guide denoising with correct object count. Our approach, CountGen, does not depend on external source to determine object layout, but rather uses the prior from the diffusion model itself, creating prompt-dependent and seed-dependent layouts. Evaluated on two benchmark datasets, we find that CountGen strongly outperforms the count-accuracy of existing baselines. Project page: https://make-it-count-paper.github.io/

View on arXivView PDF

Code Implementations(1)

Official implemention of "Make It Count: Text-to-Image Generation with an Accurate Number of Objects" (CVPR 2025)

9610Python, Jupyter NotebookJun 16, 20241 years ago

Similar Papers

Cite this paper

@article{binyamin2026make,
  title  = {Make It Count: Text-to-Image Generation with an Accurate Number of Objects},
  author = {Lital Binyamin and Yoad Tewel and Hilit Segev and Eran Hirsch and Royi Rassin and Gal Chechik},
  year   = {2026},
  eprint = {2406.10210},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2406.10210},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.10210.svg)](https://codeofpaper.com/paper/2406.10210)

Discussion