OCCAM: Class-Agnostic, Training-Free, Prior-Free and Multi-Class Object Counting
Not on the map. Why?
Abstract (arXiv)
Class-Agnostic object Counting (CAC) involves counting instances of objects from arbitrary classes within an image. Due to its practical importance, CAC has received increasing attention in recent years. Most existing methods assume a single object class per image, rely on extensive training of large deep learning models and address the problem by incorporating additional information, such as visual exemplars or text prompts. In this paper, we present OCCAM, the first training-free approach to CAC that operates without the need of any supplementary information. Moreover, our approach addresses the multi-class variant of the problem, as it is capable of counting the object instances in each and every class among arbitrary object classes within an image. We leverage Segment Anything Model 2 (SAM2), a foundation model, and a custom threshold-based variant of the First Integer Neighbor Clustering Hierarchy (FINCH) algorithm to achieve competitive performance on widely used benchmark datasets, FSC-147 and CARPK. We propose a synthetic multi-class dataset and F1 score as a more suitable evaluation metric. The code for our method and the proposed synthetic dataset will be made publicly available at https://mikespanak.github.io/OCCAM_counter.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 34 of its 46 references that are in the map. First posted on arXiv 20 Jan 2026.
Builds on
34 of 46 references.
References · 34
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2023Segment Anythingcited by 8,234
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,332
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
- 2023EVA-CLIP: Improved Training Techniques for CLIP at Scalecited by 798
- 2017Drone-based Object Counting by Spatially Regularized Regional Proposal Networkcited by 156
- 2021Learning To Count Everythingcited by 150
- 2019Efficient Parameter-free Clustering Using First Neighbor Relationscited by 97
- 2022Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Countingcited by 80
- 2022CounTR: Transformer-based Generalised Visual Countingcited by 79
22 more
- 2022A Low-Shot Object Counting Network With Iterative Prototype Adaptationcited by 65
- 2022Few-shot Object Counting with Similarity-Aware Feature Enhancementcited by 62
- 2024CountGD: Multi-Modal Open-World Countingcited by 59
- 2023Zero-shot Object Countingcited by 57
- 2022Few-shot Object Counting and Detectioncited by 55
- 2024DAVE -- A Detect-and-Verify Paradigm for Low-Shot Countingcited by 49
- 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
- 2023Training-free Object Counting with Promptscited by 34
- 2022Exemplar Free Class Agnostic Countingcited by 32
- 2017People, Penguins and Petri Dishes: Adapting Object Counting Models To New Visual Domains And Object Types Without Forgettingcited by 25
- 2024A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentationcited by 21
- 2023Can SAM Count Anything? An Empirical Study on SAM Countingcited by 18
- 2024OmniCount: Multi-label Object Counting with Semantic-Geometric Priorscited by 16
- 2023ABC Easy as 123: A Blind Counter for Exemplar-Free Multi-Class Class-agnostic Countingcited by 13
- 2023Interactive Class-Agnostic Object Countingcited by 8
- 2025A Survey on Class-Agnostic Counting: Advancements from Reference-Based to Open-World Text-Guided Approachescited by 7
- 2025CountingDINO: A Training-free Pipeline for Class-Agnostic Counting using Unsupervised Backbonescited by 6
- 2025Rethinking Cell Counting Methods: Decoupling Counting and Localizationcited by 4
- 2024A Simple-but-effective Baseline for Training-free Class-Agnostic Countingcited by 3
- 2024TFCounter:Polishing Gems for Training-Free Object Countingcited by 2
- 2024Mutually-Aware Feature Learning for Few-Shot Object Countingcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.