DAVE – A Detect-and-Verify Paradigm for Low-Shot Counting

Jer Pelhan, A. Lukežič, Vitjan Zavrtanik, Matej Kristan
2/9/2026

No official code found. Best implementation: jerpelhan/DAVE (80 stars, MIT, last commit 2025-02-28).

Abstract

Low-shot counters estimate the number of objects corresponding to a selected category, based on only few or no exemplars annotated in the image. The current state-of-the-art estimates the total counts as the sum over the object location density map, but does not provide individual object locations and sizes, which are crucial for many applications. This is addressed by detection-based counters, which, however fall behind in the total count accuracy. Furthermore, both approaches tend to overestimate the counts in the presence of other object classes due to many false positives. We propose DAVE, a low-shot counter based on a detect-and-verify paradigm, that avoids the aforementioned issues by first generating a high-recall detection set and then verifying the detections to identify and remove the out-liers. This jointly increases the recall and precision, leading to accurate counts. DAVE outperforms the top density-based counters by ~20% in the total count MAE, it outper-forms the most recent detection-based counter by ~20% in detection quality and sets a new state-of-the-art in zero-shot as well as text-prompt-based counting. The code and models are available on GitHub.

View on arXivView PDF

Code Implementations(1)

jerpelhan/DAVECommunity100%
MIT
8012Shell, PythonMar 1, 20241 years agoMIT

Similar Papers

Cite this paper

@article{pelhan2026dave,
  title  = {DAVE – A Detect-and-Verify Paradigm for Low-Shot Counting},
  author = {Jer Pelhan and A. Lukežič and Vitjan Zavrtanik and Matej Kristan},
  year   = {2026},
  eprint = {2404.16622},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2404.16622},
  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/2404.16622.svg)](https://codeofpaper.com/paper/2404.16622)

Discussion