CountZES: Counting via Zero-Shot Exemplar Selection

Muhammad Ibraheem Siddiqui, Muhammad Haris Khan
12/18/2025
cs.CV

No official code found. Best implementation: Muhammad-Ibraheem-Siddiqui/CountZES (1 star, last commit 2026-02-03).

Abstract

Object counting in complex scenes is particularly challenging in the zero-shot (ZS) setting, where instances of unseen categories are counted using only a class name. Existing ZS counting methods that infer exemplars from text often rely on off-the-shelf open-vocabulary detectors (OVDs), which in dense scenes suffer from semantic noise, appearance variability, and frequent multi-instance proposals. Alternatively, random image-patch sampling is employed, which fails to accurately delineate object instances. To address these issues, we propose CountZES, an inference-only approach for object counting via ZS exemplar selection. CountZES discovers diverse exemplars through three synergistic stages: Detection-Anchored Exemplar (DAE), Density-Guided Exemplar (DGE), and Feature-Consensus Exemplar (FCE). DAE refines OVD detections to isolate precise single-instance exemplars. DGE introduces a density-driven, self-supervised paradigm to identify statistically consistent and semantically compact exemplars, while FCE reinforces visual coherence through feature-space clustering. Together, these stages yield a complementary exemplar set that balances textual grounding, count consistency, and feature representativeness. Experiments on diverse datasets demonstrate CountZES superior performance among ZOC methods while generalizing effectively across domains.

View on arXivView PDF

Code Implementations(1)

CountZES: Counting via Zero-Shot Exemplar Selection

13C++, CudaDec 9, 20258 months agoNOASSERTION

Similar Papers

Cite this paper

@article{siddiqui2025countzes,
  title  = {CountZES: Counting via Zero-Shot Exemplar Selection},
  author = {Muhammad Ibraheem Siddiqui and Muhammad Haris Khan},
  year   = {2025},
  eprint = {2512.16415},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.16415v2}
}

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

Discussion