A Recipe for CAC: Mosaic-based Generalized Loss for Improved Class-Agnostic Counting
Not on the map. Why?
Abstract (arXiv)
Class agnostic counting (CAC) is a vision task that can be used to count the total occurrence number of any given reference objects in the query image. The task is usually formulated as a density map estimation problem through similarity computation among a few image samples of the reference object and the query image. In this paper, we point out a severe issue of the existing CAC framework: Given a multi-class setting, models don't consider reference images and instead blindly match all dominant objects in the query image. Moreover, the current evaluation metrics and dataset cannot be used to faithfully assess the model's generalization performance and robustness. To this end, we discover that the combination of mosaic augmentation with generalized loss is essential for addressing the aforementioned issue of CAC models to count objects of majority (i.e. dominant objects) regardless of the references. Furthermore, we introduce a new evaluation protocol and metrics for resolving the problem behind the existing CAC evaluation scheme and better benchmarking CAC models in a more fair manner. Besides, extensive evaluation results demonstrate that our proposed recipe can consistently improve the performance of different CAC models. The code is available at https://github.com/littlepenguin89106/MGCAC.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 19 of its 24 references that are in the map. First posted on arXiv 15 Apr 2024.
Builds on
19 of 24 references.
References · 19
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,588
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,223
- 2014Microsoft COCO: Common Objects in Contextcited by 17,550
- 2022MixFormer: End-to-End Tracking with Iterative Mixed Attentioncited by 279
- 2018CSRNet: Dilated Convolutional Neural Networks for Understanding the Highly Congested Scenescited by 267
- 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
- 2021Learning To Count Everythingcited by 150
- 2018Class-Agnostic Countingcited by 85
- 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Countingcited by 83
- 2022Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Countingcited by 80
7 more
- 2022CounTR: Transformer-based Generalised Visual Countingcited by 79
- 2022A Low-Shot Object Counting Network With Iterative Prototype Adaptationcited by 65
- 2022Few-shot Object Counting with Similarity-Aware Feature Enhancementcited by 62
- 2022Rethinking Spatial Invariance of Convolutional Networks for Object Countingcited by 54
- 2023Open-world Text-specified Object Countingcited by 41
- 2019Learning Spatial Awareness to Improve Crowd Countingcited by 36
- 2020Encoder-Decoder Based Convolutional Neural Networks with Multi-Scale-Aware Modules for Crowd Countingcited by 22
Built on by
Not cited yet.