SQLNet: Scale-Modulated Query and Localization Network for Few-Shot Class-Agnostic Counting
Not on the map. Why?
Abstract (arXiv)
The class-agnostic counting (CAC) task has recently been proposed to solve the problem of counting all objects of an arbitrary class with several exemplars given in the input image. To address this challenging task, existing leading methods all resort to density map regression, which renders them impractical for downstream tasks that require object locations and restricts their ability to well explore the scale information of exemplars for supervision. To address the limitations, we propose a novel localization-based CAC approach, termed Scale-modulated Query and Localization Network (SQLNet). It fully explores the scales of exemplars in both the query and localization stages and achieves effective counting by accurately locating each object and predicting its approximate size. Specifically, during the query stage, rich discriminative representations of the target class are acquired by the Hierarchical Exemplars Collaborative Enhancement (HECE) module from the few exemplars through multi-scale exemplar cooperation with equifrequent size prompt embedding. These representations are then fed into the Exemplars-Unified Query Correlation (EUQC) module to interact with the query features in a unified manner and produce the correlated query tensor. In the localization stage, the Scale-aware Multi-head Localization (SAML) module utilizes the query tensor to predict the confidence, location, and size of each potential object. Moreover, a scale-aware localization loss is introduced, which exploits flexible location associations and exemplar scales for supervision to optimize the model performance. Extensive experiments demonstrate that SQLNet outperforms state-of-the-art methods on popular CAC benchmarks, achieving excellent performance not only in counting accuracy but also in localization and bounding box generation. Our codes will be available at https://github.com/HCPLab-SYSU/SQLNet
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 41 of its 65 references that are in the map. First posted on arXiv 16 Nov 2023.
Builds on
41 of 65 references.
References · 41
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
- 2023Segment Anythingcited by 8,234
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2017Mask R-CNNcited by 7,277
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
29 more
- 2017Squeeze-and-Excitation Networkscited by 4,789
- 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,857
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,287
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2018Few-shot Object Detection via Feature Reweightingcited by 265
- 2019Few-Shot Object Detection with Attention-RPN and Multi-Relation Detectorcited by 206
- 2017Drone-based Object Counting by Spatially Regularized Regional Proposal Networkcited by 156
- 2021Rethinking Counting and Localization in Crowds:A Purely Point-Based Frameworkcited by 152
- 2018Context-Aware Crowd Countingcited by 150
- 2021Learning To Count Everythingcited by 150
- 2018Class-Agnostic Countingcited by 85
- 2022Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Countingcited by 80
- 2019Locate, Size and Count: Accurately Resolving People in Dense Crowds via Detectioncited by 73
- 2022Boosting Crowd Counting via Multifaceted Attentioncited by 73
- 2020Localization in the Crowd with Topological Constraintscited by 68
- 2022Few-shot Object Counting with Similarity-Aware Feature Enhancementcited by 62
- 2019Perspective-Guided Convolution Networks for Crowd Countingcited by 54
- 2020Cross-Modal Collaborative Representation Learning and a Large-Scale RGBT Benchmark for Crowd Countingcited by 52
- 2023CrowdCLIP: Unsupervised Crowd Counting via Vision-Language Modelcited by 47
- 2018ADCrowdNet: An Attention-injective Deformable Convolutional Network for Crowd Understandingcited by 45
- 2020A Self-Training Approach for Point-Supervised Object Detection and Counting in Crowdscited by 36
- 2021Focal Inverse Distance Transform Maps for Crowd Localizationcited by 36
- 2021CCTrans: Simplifying and Improving Crowd Counting with Transformercited by 30
- 2023Vision Transformer Off-the-Shelf: A Surprising Baseline for Few-Shot Class-Agnostic Countingcited by 25
- 2022Heterogeneous Semantic Transfer for Multi-label Recognition with Partial Labelscited by 19
- 2020Efficient Crowd Counting via Structured Knowledge Transfercited by 13
- 2023Spatial-Temporal Knowledge-Embedded Transformer for Video Scene Graph Generationcited by 10
- 2021Rethinking Global Context in Crowd Countingcited by 8
- 2023Contrastive Transformer Learning with Proximity Data Generation for Text-Based Person Searchcited by 8
Built on by
Citing papers per year: 2024: 2; 2025: 2; 2026: 1.
5 papers.
- 2026Does it Really Count? Assessing Semantic Grounding in Text-Guided Class-Agnostic Countingcited by 2
- 2024Dual-View Data Hallucination with Semantic Relation Guidance for Few-Shot Image Recognitioncited by 1
- 2024Category-Adaptive Cross-Modal Semantic Refinement and Transfer for Open-Vocabulary Multi-Label Recognitioncited by 1
- 2025CoDi -- an exemplar-conditioned diffusion model for low-shot countingcited by 1
- 2025Robust Egocentric Referring Video Object Segmentation via Dual-Modal Causal Interventioncited by 1
- 2026Does it Really Count? Assessing Semantic Grounding in Text-Guided Class-Agnostic Counting4 May 2026
- 2025Robust Egocentric Referring Video Object Segmentation via Dual-Modal Causal Intervention30 Dec 2025
- 2025CoDi -- an exemplar-conditioned diffusion model for low-shot counting23 Dec 2025
- 2024Category-Adaptive Cross-Modal Semantic Refinement and Transfer for Open-Vocabulary Multi-Label Recognition9 Dec 2024
- 2024Dual-View Data Hallucination with Semantic Relation Guidance for Few-Shot Image Recognition13 Jan 2024