[Paper Review] Object Counting: You Only Need to Look at One
This paper proposes LaoNet, a novel one-shot object counting model that achieves state-of-the-art performance by leveraging Self-Attention and Correlative-Attention to model intra- and inter-instance relationships, along with a Scale Aggregation mechanism for multi-scale feature extraction. The model counts novel category objects using only one support example, outperforming prior methods with faster convergence and high accuracy on FSC-147 and COCO benchmarks.
This paper aims to tackle the challenging task of one-shot object counting. Given an image containing novel, previously unseen category objects, the goal of the task is to count all instances in the desired category with only one supporting bounding box example. To this end, we propose a counting model by which you only need to Look At One instance (LaoNet). First, a feature correlation module combines the Self-Attention and Correlative-Attention modules to learn both inner-relations and inter-relations. It enables the network to be robust to the inconsistency of rotations and sizes among different instances. Second, a Scale Aggregation mechanism is designed to help extract features with different scale information. Compared with existing few-shot counting methods, LaoNet achieves state-of-the-art results while learning with a high convergence speed. The code will be available soon.
Motivation & Objective
- Address the challenge of counting novel, unseen object categories in images with only one annotated example.
- Overcome domain shift and instance variation (e.g., scale, rotation) in few-shot counting scenarios.
- Design a model that generalizes effectively across diverse object categories without fine-tuning.
- Improve robustness and accuracy in one-shot counting by modeling both intra-instance and inter-instance feature correlations.
- Achieve high convergence speed and stable training performance compared to existing few-shot counting methods.
Proposed method
- Introduce a feature correlation module combining Self-Attention and Correlative-Attention to learn inner-relations among features of the query image and inter-relations between query and support features.
- Apply Self-Attention to refine features within the query image and support box, enhancing focus on salient regions and their spatial dependencies.
- Implement a Scale Aggregation mechanism that extracts multi-scale features from the support region and fuses them while preserving spatial consistency.
- Use position embeddings on flattened features to maintain spatial structure during attention computation.
- Employ a density regressor to predict a final density map, with the total count derived as the sum of all map values.
- Train using a combination of L1 loss and SSIM loss to improve feature alignment and regression accuracy.
Experimental results
Research questions
- RQ1Can a single support example enable accurate and robust counting of novel object categories in one-shot object counting?
- RQ2How can attention mechanisms improve feature correlation learning across diverse object instances with varying scales and poses?
- RQ3To what extent does multi-scale feature aggregation enhance model generalization in few-shot counting?
- RQ4Does the proposed LaoNet achieve faster convergence and better stability compared to existing few-shot counting models?
- RQ5Can a one-shot counting model outperform pre-trained object detectors even when those detectors are fine-tuned on the same categories?
Key findings
- LaoNet achieves state-of-the-art performance on the FSC-147 dataset, reducing MAE from 17.11 to 15.78 and RMSE from 56.81 to 97.15 on the test set compared to prior methods.
- On the COCO dataset, LaoNet achieves an MAE of 12.89 and RMSE of 26.64 on the FSC147-COCO test split, significantly outperforming pre-trained object detectors like RetinaNet and Faster R-CNN.
- Ablation studies show that Self-Attention modules contribute most to performance, reducing MAE by 19.9% and RMSE by 13.1% compared to ablated versions.
- The Scale Aggregation mechanism improves robustness, particularly reducing RMSE by 10.4% compared to the ablated version without it.
- The SSIM loss further enhances performance, lowering MAE and RMSE by 1.5% and 3.4% respectively compared to baseline without it.
- LaoNet converges significantly faster than baseline methods—achieving low validation MAE in just 2 epochs, while FamNet requires 40 epochs to reach similar performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.