CountGD++: Generalized Prompting for Open-World Counting

Niki Amini-Naieni, Andrew Zisserman
12/29/2025
cs.CV

Official code: niki-amini-naieni/CountGDPlusPlus (37 stars, MIT, last commit 2026-02-25).

Abstract

The flexibility and accuracy of methods for automatically counting objects in images and videos are limited by the way the object can be specified. While existing methods allow users to describe the target object with text and visual examples, the visual examples must be manually annotated inside the image, and there is no way to specify what not to count. To address these gaps, we introduce novel capabilities that expand how the target object can be specified. Specifically, we extend the prompt to enable what not to count to be described with text and/or visual examples, introduce the concept of `pseudo-exemplars' that automate the annotation of visual examples at inference, and extend counting models to accept visual examples from both natural and synthetic external images. We also use our new counting model, CountGD++, as a vision expert agent for an LLM. Together, these contributions expand the prompt flexibility of multi-modal open-world counting and lead to significant improvements in accuracy, efficiency, and generalization across multiple datasets. Code is available at https://github.com/niki-amini-naieni/CountGDPlusPlus.

View on arXivView PDF

Code Implementations(1)

MIT

Includes the code for training and testing the CountGD++ model from the paper CountGD++: Generalized Prompting for Open-World Counting.

374C++, CudaDec 14, 20257 months agoMIT

Similar Papers

Cite this paper

@article{amininaieni2025countgd,
  title  = {CountGD++: Generalized Prompting for Open-World Counting},
  author = {Niki Amini-Naieni and Andrew Zisserman},
  year   = {2025},
  eprint = {2512.23351},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.23351v1}
}

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/2512.23351.svg)](https://codeofpaper.com/paper/2512.23351)

Discussion