LGCount: Layout-Guided Diffusion for Zero-Shot Object Counting
Adriano D'Alessandro, Ali Mahdavi-Amiri, Ghassan Hamarneh
Key points
From the paper's conclusion- We therefore train on synthetic counterfactuals in which one image admits several valid density maps, so that the layout cannot be ignored.
Abstract
Class-agnostic counting requires the user to specify what to count, usually with a class name or a few annotated boxes. We propose a richer text-based specification: a structured layout that names the target, the region that holds it, the distractors to ignore. A prompt upsampler writes this layout from the image and the requested category alone, and an image-editing diffusion model, adapted into a single-step counter, turns it into a density map. Because counting datasets pair each image with a single valid density map, a counter trained on it learns to ignore the layout. We therefore train on synthetic counterfactuals in which one image admits several valid density maps, so that the layout cannot be ignored. On FSC-147 we improve on the previous zero-shot state of the art and we set the best reported result on LOOKALIKES while being told the least about each image. A single photograph can be counted by category, by region, or by granularity without retraining.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ABACUS: Adapting Unified Foundation Model for Count Image Understanding and GenerationACM Transactions on Graphics · 2026
- NumBench: Diagnosing Counting Failures in Text-to-Image ModelsarXiv · 2026
- CoDi - an exemplar-conditioned diffusion model for low-shot counting.IEEE transactions on image processing : a publication of the IEEE Signal Processing Society · 2026
- Click and Count: Multimodal Prototype Adaptation for Class-Agnostic Object CountingarXiv · 2026
- ABACUS: A Benchmark for Image Editing Models to Assess Object Category and Counting Under Scene ConservationarXiv · 2026
- GIPACount: Global interaction and prototype-guided aggregation network for exemplar-conditioned few-shot object counting.Neural networks : the official journal of the International Neural Network Society · 2026