FocalCount: Towards Class-Count Imbalance in Class-Agnostic Counting
Not on the map. Why?
Abstract (arXiv)
In class-agnostic object counting, the goal is to estimate the total number of object instances in an image without distinguishing between specific categories. Existing methods often predict this count without considering class-specific outputs, leading to inaccuracies when such outputs are required. These inaccuracies stem from two key challenges: 1) the prevalence of single-category images in datasets, which leads models to generalize specific categories as representative of all objects, and 2) the use of mean squared error loss during training, which applies uniform penalization. This uniform penalty disregards errors in less frequent categories, particularly when these errors contribute minimally to the overall loss. To address these issues, we propose {FocalCount}, a novel approach that leverages diverse feature attributes to estimate the number of object categories in an image. This estimate serves as a weighted factor to correct class-count imbalances. Additionally, we introduce {Focal-MSE}, a new loss function that integrates binary cross-entropy to generate stronger error gradients, enhancing the model's sensitivity to errors in underrepresented categories. Our approach significantly improves the model's ability to distinguish between specific classes and general counts, demonstrating superior performance and scalability in both few-shot and zero-shot scenarios across three object counting datasets. The code will be released soon.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 24 of its 33 references that are in the map. First posted on arXiv 15 Feb 2025.
Builds on
24 of 33 references.
References · 24
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2017Drone-based Object Counting by Spatially Regularized Regional Proposal Networkcited by 155
- 2021Learning To Count Everythingcited by 149
- 2016A Large Contextual Dataset for Classification, Detection and Counting of Cars with Deep Learningcited by 86
- 2018Class-Agnostic Countingcited by 85
- 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Countingcited by 82
- 2022Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Countingcited by 80
- 2022CounTR: Transformer-based Generalised Visual Countingcited by 79
- 2023Simple and Fast Group Robustness by Automatic Feature Reweightingcited by 68
- 2022A Low-Shot Object Counting Network With Iterative Prototype Adaptationcited by 65
- 2022Few-shot Object Counting with Similarity-Aware Feature Enhancementcited by 62
- 2023Zero-shot Object Countingcited by 57
12 more
- 2022Few-shot Object Counting and Detectioncited by 55
- 2023CrowdCLIP: Unsupervised Crowd Counting via Vision-Language Modelcited by 47
- 2023VLCounter: Text-aware Visual Representation for Zero-Shot Object Countingcited by 45
- 2022Learning to Count Anything: Reference-less Class-agnostic Counting with Weak Supervisioncited by 41
- 2023Point, Segment and Count: A Generalized Framework for Object Countingcited by 39
- 2024Gradient Reweighting: Towards Imbalanced Class-Incremental Learningcited by 37
- 2023Vision Transformer Off-the-Shelf: A Surprising Baseline for Few-Shot Class-Agnostic Countingcited by 25
- 2020Completely Self-Supervised Crowd Counting via Distribution Matchingcited by 22
- 2024Zero-shot Object Counting with Good Exemplarscited by 21
- 2022Domain-General Crowd Counting in Unseen Scenarioscited by 20
- 2024Gramformer: Learning Crowd Counting via Graph-Modulated Transformercited by 19
- 2023DeGPR: Deep Guided Posterior Regularization for Multi-Class Cell Detection and Countingcited by 18
Built on by
Not cited yet.