Zero-Shot Object Counting
Jingyi Xu, Hieu Le, Vu Nguyen, Viresh Ranjan, Dimitris Samaras
Abstract
Class-agnostic object counting aims to count object instances of an arbitrary class at test time. Current methods for this challenging problem require human-annotated exemplars as inputs, which are often unavailable for novel categories, especially for autonomous systems. Thus, we propose zero-shot object counting (ZSC), a new setting where only the class name is available during test time. Such a counting system does not require human annotators in the loop and can operate automatically. Starting from a class name, we propose a method that can accurately identify the optimal patches which can then be used as counting exemplars. Specifically, we first construct a class prototype to select the patches that are likely to contain the objects of interest, namely class-relevant patches. Furthermore, we introduce a model that can quantitatively measure how suitable an arbitrary patch is as a counting exemplar. By applying this model to all the candidate patches, we can select the most suitable patches as exemplars for counting. Experimental results on a recent class-agnostic counting dataset, FSC-147, validate the effectiveness of our method. Code is available at https://github.com/cvlab- stonybrook/zero-shot-counting. * Work done prior to joining Amazon Be happy , Douya (a) Few-shot Counting (b) Zero-Shot Counting
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- A Fixed-Point Approach to Unified Prompt-Based Counting cites Learning Transferable Visual Models From Natural Language Supervision
- A Fixed-Point Approach to Unified Prompt-Based Counting cites CLIP-Count: Towards Text-Guided Zero-Shot Object Counting
- DAVE - A Detect-and-Verify Paradigm for Low-Shot Counting cites Distribution Matching for Crowd Counting
- DAVE - A Detect-and-Verify Paradigm for Low-Shot Counting cites CLIP-Count: Towards Text-Guided Zero-Shot Object Counting
- CountGD: Multi-Modal Open-World Counting cites DAVE - A Detect-and-Verify Paradigm for Low-Shot Counting
- CountGD: Multi-Modal Open-World Counting cites Learning Transferable Visual Models From Natural Language Supervision
- CountGD: Multi-Modal Open-World Counting cites CLIP-Count: Towards Text-Guided Zero-Shot Object Counting
- Localization in the Crowd with Topological Constraints cites Attentional Neural Fields for Crowd Counting
- Localization in the Crowd with Topological Constraints cites Distribution Matching for Crowd Counting
- Distribution Matching for Crowd Counting cites Attentional Neural Fields for Crowd Counting
- CountGD++: Generalized Prompting for Open-World Counting cites DAVE - A Detect-and-Verify Paradigm for Low-Shot Counting
- CountGD++: Generalized Prompting for Open-World Counting cites CountGD: Multi-Modal Open-World Counting
- CountGD++: Generalized Prompting for Open-World Counting cites Learning Transferable Visual Models From Natural Language Supervision
- CountGD++: Generalized Prompting for Open-World Counting cites CLIP-Count: Towards Text-Guided Zero-Shot Object Counting
- CLIP-Count: Towards Text-Guided Zero-Shot Object Counting cites Learning Transferable Visual Models From Natural Language Supervision
Cited by top-tier papers14
- CountGD: Multi-Modal Open-World CountingNiki Amini-Naieni, Tengda Han, Andrew ZissermanNeurIPS 2024 · 96 citations
- CLIP-Count: Towards Text-Guided Zero-Shot Object CountingRuixiang Jiang, Lingbo Liu, Changwen ChenACM MM 2023 · 78 citations
- DAVE - A Detect-and-Verify Paradigm for Low-Shot CountingJer Pelhan, Alan Lukezic, Vitjan Zavrtanik, Matej KristanCVPR 2024 · 14 citations
- CountGD++: Generalized Prompting for Open-World CountingNiki Amini-Naieni, Andrew ZissermanCVPR 2026 · 14 citations
- A Fixed-Point Approach to Unified Prompt-Based CountingWei Lin, Antoni B. ChanAAAI 2024 · 11 citations
Builds on12
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Distribution Matching for Crowd CountingBoyu Wang, Huidong Liu, Dimitris Samaras, Minh Hoai NguyenNeurIPS 2020 · 443 citations
- Localization in the Crowd with Topological ConstraintsShahira Abousamra, Minh Hoai, Dimitris Samaras, Chao ChenAAAI 2021 · 160 citations
- Attentional Neural Fields for Crowd CountingAnran Zhang, Lei Yue, Jiayi Shen, Fan Zhu et al.ICCV 2019 · 121 citations
- Pushing the Frontiers of Unconstrained Crowd Counting: New Dataset and Benchmark MethodVishwanath Sindagi, Rajeev Yasarla, Vishal M. PatelICCV 2019 · 101 citations
Related papers
- A Low-Shot Object Counting Network With Iterative Prototype AdaptationNikola Ðukic, Alan Lukezic, Vitjan Zavrtanik, Matej KristanICCV 2023 · 91 citations
- CountSE: Soft Exemplar Open-Set Object CountingShuai Liu, Peng Zhang, Shiwei Zhang, Wei KeICCV 2025 · 1 citation
- Learning To Count EverythingViresh Ranjan, Udbhav Sharma, Thu Nguyen, Minh HoaiCVPR 2021
- Point, Segment and Count: A Generalized Framework for Object CountingZhizhong Huang, Mingliang Dai, Yi Zhang, Junping Zhang et al.CVPR 2024
- Enhancing Zero-Shot Object Counting via Text-Guided Local Ranking and Number-Evoked Global AttentionShiwei Zhang, Qi Zhou, Wei KeICCV 2025 · 7 citations
