A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentation
Jer Pelhan, Alan Lukezic, Vitjan Zavrtanik, Matej Kristan
Abstract
Low-shot object counters estimate the number of objects in an image using few or no annotated exemplars. Objects are localized by matching them to prototypes, which are constructed by unsupervised image-wide object appearance aggregation. Due to potentially diverse object appearances, the existing approaches often lead to overgeneralization and false positive detections. Furthermore, the best-performing methods train object localization by a surrogate loss, that predicts a unit Gaussian at each object center. This loss is sensitive to annotation error, hyperparameters and does not directly optimize the detection task, leading to suboptimal counts. We introduce GeCo, a novel low-shot counter that achieves accurate object detection, segmentation, and count estimation in a unified architecture. GeCo robustly generalizes the prototypes across objects appearances through a novel dense object query formulation. In addition, a novel counting loss is proposed, that directly optimizes the detection task and avoids the issues of the standard surrogate loss. GeCo surpasses the leading few-shot detection-based counters by 25% in the total count MAE, achieves superior detection accuracy and sets a new solid state-of-the-art result across all low-shot counting setups.
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.
7 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
- Boosting Quantitive and Spatial Awareness for Zero-Shot Object Counting cites Few-Shot Pattern Detection via Template Matching and Regression
- Boosting Quantitive and Spatial Awareness for Zero-Shot Object Counting cites A Low-Shot Object Counting Network With Iterative Prototype Adaptation
- Boosting Quantitive and Spatial Awareness for Zero-Shot Object Counting cites Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Counting
- Boosting Quantitive and Spatial Awareness for Zero-Shot Object Counting cites Enhancing Zero-Shot Object Counting via Text-Guided Local Ranking and Number-Evoked Global Attention
- Few-Shot Pattern Detection via Template Matching and Regression cites FCOS: Fully Convolutional One-Stage Object Detection
- A Low-Shot Object Counting Network With Iterative Prototype Adaptation cites Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Counting
- CountGD++: Generalized Prompting for Open-World Counting cites A Low-Shot Object Counting Network With Iterative Prototype Adaptation
- CountGD++: Generalized Prompting for Open-World Counting cites Open-World Object Counting in Videos
- Segment Anything in High Quality cites Segment Anything
- Enhancing Zero-Shot Object Counting via Text-Guided Local Ranking and Number-Evoked Global Attention cites Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Counting
- Open-World Object Counting in Videos cites A Low-Shot Object Counting Network With Iterative Prototype Adaptation
Cited by top-tier papers7
- CountGD++: Generalized Prompting for Open-World CountingNiki Amini-Naieni, Andrew ZissermanCVPR 2026 · 14 citations
- Enhancing Zero-Shot Object Counting via Text-Guided Local Ranking and Number-Evoked Global AttentionShiwei Zhang, Qi Zhou, Wei KeICCV 2025 · 7 citations
- Boosting Quantitive and Spatial Awareness for Zero-Shot Object CountingDa Zhang, Bingyu Li, Feiyu Wang, Zhiyuan Zhao et al.CVPR 2026 · 6 citations
- Open-World Object Counting in VideosNiki Amini-Naieni, Andrew ZissermanAAAI 2026 · 6 citations
- Few-Shot Pattern Detection via Template Matching and RegressionEunchan Jo, Dahyun Kang, Sanghyun Kim, Yunseon Choi et al.ICCV 2025 · 1 citation
Builds on9
- Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
- FCOS: Fully Convolutional One-Stage Object DetectionZhi Tian, Chunhua Shen, Hao Chen, Tong HeICCV 2019 · 6,042 citations
- Segment Anything in High QualityLei Ke, Mingqiao Ye, Martin Danelljan, Yifan Liu et al.NeurIPS 2023 · 709 citations
- Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic CountingMin Shi, Hao Lu, Chen Feng, Chengxin Liu et al.CVPR 2022 · 99 citations
- A Low-Shot Object Counting Network With Iterative Prototype AdaptationNikola Ðukic, Alan Lukezic, Vitjan Zavrtanik, Matej KristanICCV 2023 · 91 citations
Related papers
- Generalized-Scale Object Counting with Gradual Query AggregationJer Pelhan, Alan Lukezic, Matej KristanAAAI 2026
- DAVE - A Detect-and-Verify Paradigm for Low-Shot CountingJer Pelhan, Alan Lukezic, Vitjan Zavrtanik, Matej KristanCVPR 2024 · 14 citations
- Point, Segment and Count: A Generalized Framework for Object CountingZhizhong Huang, Mingliang Dai, Yi Zhang, Junping Zhang et al.CVPR 2024
- Single Domain Generalization for Few-Shot Counting via Universal Representation MatchingXianing Chen, Si Huo, Borui Jiang, Hailin Hu et al.CVPR 2025
- Learning To Count EverythingViresh Ranjan, Udbhav Sharma, Thu Nguyen, Minh HoaiCVPR 2021
