• People
  • Research
  • Projects
  • Publications
  • Resources
ViCoS Lab

Authors

Jer Pelhan, MSc
Jer Pelhan, MSc
Alan Lukežič, PhD
Alan Lukežič, PhD
Vitjan Zavrtanik, PhD
Vitjan Zavrtanik, PhD
Matej Kristan, PhD
Matej Kristan, PhD

Links

  •   GitHub repository
  •   External link

Tags

Counting

Generalized-Scale Object Counting with Gradual Query Aggregation

Jer Pelhan, Alan Lukežič, Vitjan Zavrtanik and Matej Kristan
Proceedings of the AAAI Conference on Artificial Intelligence, <nil>, 2026,

Few-shot detection-based counters estimate the number of instances in the image specified only by a few test-time exemplars. A common approach to localize objects across multiple sizes is to merge backbone features of different resolutions. Furthermore, to enable small object detection in densely populated regions, the input image is commonly upsampled and tiling is applied to cope with the increased computational and memory requirements. Because of these ad-hoc solutions, existing counters struggle with images containing diverse-sized objects and densely populated regions of small objects. We propose GeCo2, an end-to-end few-shot counting and detection method that explicitly addresses the object scale issues. A new dense query representation gradually aggregates exemplar-specific feature information across scales that leads to high-resolution dense queries that enable detection of large as well as small objects. GeCo2 surpasses state-of-the-art few-shot counters in counting as well as detection accuracy by ~10% while running ~3x faster at smaller GPU memory footprint.

Faculty of Computer and Information Science

Visual Cognitive Systems Laboratory

University of Ljubljana

Faculty of Computer and Information Science

Večna pot 113
SI-1000 Ljubljana
Slovenia
Tel.: +386 1 479 8245