Training-free Object Counting with Prompts
Not on the map. Why?
Abstract (arXiv)
This paper tackles the problem of object counting in images. Existing approaches rely on extensive training data with point annotations for each object, making data collection labor-intensive and time-consuming. To overcome this, we propose a training-free object counter that treats the counting task as a segmentation problem. Our approach leverages the Segment Anything Model (SAM), known for its high-quality masks and zero-shot segmentation capability. However, the vanilla mask generation method of SAM lacks class-specific information in the masks, resulting in inferior counting accuracy. To overcome this limitation, we introduce a prior-guided mask generation method that incorporates three types of priors into the segmentation process, enhancing efficiency and accuracy. Additionally, we tackle the issue of counting objects specified through text by proposing a two-stage approach that combines reference object selection and prior-guided mask generation. Extensive experiments on standard datasets demonstrate the competitive performance of our training-free counter compared to learning-based approaches. This paper presents a promising solution for counting objects in various scenarios without the need for extensive data collection and counting-specific training. Code is available at urlhttps://github.com/shizenglin/training-free-object-counter
Key facts. Cited by 34 papers in the map (data through 14 Oct 2026). Builds on 21 of its 37 references that are in the map. First posted on arXiv 30 Jun 2023.
Builds on
21 of 37 references.
References · 21
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2023Segment Anythingcited by 8,234
- 2017Drone-based Object Counting by Spatially Regularized Regional Proposal Networkcited by 156
- 2021Learning To Count Everythingcited by 150
- 2023A Closer Look at the Explainability of Contrastive Language-Image Pre-trainingcited by 96
- 2018Class-Agnostic Countingcited by 85
- 2022Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Countingcited by 80
- 2022Few-shot Object Counting with Similarity-Aware Feature Enhancementcited by 62
- 2023Zero-shot Object Countingcited by 57
- 2022Rethinking Spatial Invariance of Convolutional Networks for Object Countingcited by 54
- 2019Learning Spatial Awareness to Improve Crowd Countingcited by 36
- 2019Counting with Focus for Freecited by 33
9 more
- 2022Exemplar Free Class Agnostic Countingcited by 32
- 2018Finding any Waldo: zero-shot invariant and efficient visual searchcited by 28
- 2019Crowd Counting Using Scale-Aware Attention Networkscited by 20
- 2019Improving the Learning of Multi-column Convolutional Neural Network for Crowd Countingcited by 15
- 2021Visual Search Asymmetry: Deep Nets and Humans Share Similar Inherent Biasescited by 12
- 2020Coarse- and Fine-grained Attention Network with Background-aware Loss for Crowd Density Map Estimationcited by 11
- 2021Look Twice: A Generalist Computational Model Predicts Return Fixations across Tasks and Speciescited by 8
- 2023Focus for Free in Density-Based Countingcited by 8
- 2020Understanding the impact of mistakes on background regions in crowd countingcited by 7
Built on by
Citing papers per year: 2023: 3; 2024: 12; 2025: 12; 2026: 7.
34 papers.
Sort:
By area:
- 2023Point, Segment and Count: A Generalized Framework for Object Countingcited by 39
- 2025Token Activation Map to Visually Explain Multimodal LLMscited by 32
- 2024Zero-shot Object Counting with Good Exemplarscited by 21
- 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Modelscited by 20
- 2025T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Countingcited by 19
- 2025CountQA: How Well Do MLLMs Count in the Wild?cited by 19
- 2024OmniCount: Multi-label Object Counting with Semantic-Geometric Priorscited by 16
- 2024Mind the Prompt: A Novel Benchmark for Prompt-based Class-Agnostic Countingcited by 11
- 2024A Fixed-Point Approach to Unified Prompt-Based Countingcited by 10
- 2025CountGD++: Generalized Prompting for Open-World 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
22 more
- 2025Point-to-Region Loss for Semi-Supervised Point-Based Crowd Countingcited by 6
- 2023Learning to Count without Annotationscited by 5
- 2024Visual Enumeration Remains Challenging for Multimodal Generative AIcited by 5
- 2023Industrial Segment Anything -- a Case Study in Aircraft Manufacturing, Intralogistics, Maintenance, Repair, and Overhaulcited by 4
- 2024Boosting Few-Shot Semantic Segmentation Via Segment Anything Modelcited by 4
- 2025CountLoop: Training-Free High-Instance Image Generation via Iterative Agent Guidancecited by 4
- 2024A Simple-but-effective Baseline for Training-free Class-Agnostic Countingcited by 3
- 2024SOS: Segment Object System for Open-World Instance Segmentation With Object Priorscited by 3
- 2024TFCounter:Polishing Gems for Training-Free Object Countingcited by 2
- 2024PerSense: Training-Free Personalized Instance Segmentation in Dense Imagescited by 2
- 2024Mutually-Aware Feature Learning for Few-Shot Object Countingcited by 2
- 2025What is the Right Embedding Space for Contrastive Learning in Referring Expression Counting?cited by 2
- 2025Towards PerSense++: Advancing Training-Free Personalized Instance Segmentation in Dense Imagescited by 2
- 2026Does it Really Count? Assessing Semantic Grounding in Text-Guided Class-Agnostic Countingcited by 2
- 2025Assessing the Visual Enumeration Abilities of Specialized Counting Architectures and Vision-Language Modelscited by 1
- 2026OCCAM: Class-Agnostic, Training-Free, Prior-Free and Multi-Class Object Countingcited by 1
- 2026CountEx: Fine-Grained Counting via Exemplars and Exclusioncited by 1
- 2026AdaCount: Training-Free Similarity-Guided Spatial and Feature Adaptation for Zero-Shot Object Countingcited by 1
- 2025CountZES: Counting via Zero-Shot Exemplar Selectioncited by 0
- 2026ABACUS: Adapting Unified Foundation Model for Bridging Image Count Understanding and Generationcited by 0
- 2026RECOUNT: Reference-guided Counting with Synthetic Visual Exemplarscited by 0
- 2026DualCount: Structurally Consistent Density and Point Modeling for Zero-Shot Object Countingcited by 0
- 2026DualCount: Structurally Consistent Density and Point Modeling for Zero-Shot Object Counting14 Sep 2026
- 2026RECOUNT: Reference-guided Counting with Synthetic Visual Exemplars20 Aug 2026
- 2026AdaCount: Training-Free Similarity-Guided Spatial and Feature Adaptation for Zero-Shot Object Counting2 Jul 2026
- 2026ABACUS: Adapting Unified Foundation Model for Bridging Image Count Understanding and Generation22 Jun 2026
- 2026Does it Really Count? Assessing Semantic Grounding in Text-Guided Class-Agnostic Counting4 May 2026
- 2026CountEx: Fine-Grained Counting via Exemplars and Exclusion23 Feb 2026
- 2026OCCAM: Class-Agnostic, Training-Free, Prior-Free and Multi-Class Object Counting20 Jan 2026
- 2025CountGD++: Generalized Prompting for Open-World Counting29 Dec 2025
- 2025CountZES: Counting via Zero-Shot Exemplar Selection18 Dec 2025
- 2025Assessing the Visual Enumeration Abilities of Specialized Counting Architectures and Vision-Language Models17 Dec 2025
- 2025Towards PerSense++: Advancing Training-Free Personalized Instance Segmentation in Dense Images20 Aug 2025
- 2025CountLoop: Training-Free High-Instance Image Generation via Iterative Agent Guidance18 Aug 2025
22 more
- 2025CountQA: How Well Do MLLMs Count in the Wild?8 Aug 2025
- 2025Token Activation Map to Visually Explain Multimodal LLMs29 Jun 2025
- 2025What is the Right Embedding Space for Contrastive Learning in Referring Expression Counting?28 May 2025
- 2025Point-to-Region Loss for Semi-Supervised Point-Based Crowd Counting28 May 2025
- 2025CountingDINO: A Training-free Pipeline for Class-Agnostic Counting using Unsupervised Backbones23 Apr 2025
- 2025T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Counting28 Feb 2025
- 2025A Survey on Class-Agnostic Counting: Advancements from Reference-Based to Open-World Text-Guided Approaches31 Jan 2025
- 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Models1 Dec 2024
- 2024Mind the Prompt: A Novel Benchmark for Prompt-based Class-Agnostic Counting24 Sep 2024
- 2024SOS: Segment Object System for Open-World Instance Segmentation With Object Priors22 Sep 2024
- 2024Mutually-Aware Feature Learning for Few-Shot Object Counting19 Aug 2024
- 2024Zero-shot Object Counting with Good Exemplars6 Jul 2024
- 2024PerSense: Training-Free Personalized Instance Segmentation in Dense Images22 May 2024
- 2024A Fixed-Point Approach to Unified Prompt-Based Counting15 Mar 2024
- 2024TFCounter:Polishing Gems for Training-Free Object Counting12 Mar 2024
- 2024OmniCount: Multi-label Object Counting with Semantic-Geometric Priors8 Mar 2024
- 2024A Simple-but-effective Baseline for Training-free Class-Agnostic Counting3 Mar 2024
- 2024Boosting Few-Shot Semantic Segmentation Via Segment Anything Model18 Jan 2024
- 2024Visual Enumeration Remains Challenging for Multimodal Generative AI9 Jan 2024
- 2023Point, Segment and Count: A Generalized Framework for Object Counting21 Nov 2023
- 2023Industrial Segment Anything -- a Case Study in Aircraft Manufacturing, Intralogistics, Maintenance, Repair, and Overhaul24 Jul 2023
- 2023Learning to Count without Annotations17 Jul 2023
- 2025Token Activation Map to Visually Explain Multimodal LLMscited by 32
- 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Modelscited by 20
- 2025CountQA: How Well Do MLLMs Count in the Wild?cited by 19
- 2025Assessing the Visual Enumeration Abilities of Specialized Counting Architectures and Vision-Language Modelscited by 1
- 2026ABACUS: Adapting Unified Foundation Model for Bridging Image Count Understanding and Generationcited by 0
- 2026ABACUS: Adapting Unified Foundation Model for Bridging Image Count Understanding and Generation22 Jun 2026
- 2025Assessing the Visual Enumeration Abilities of Specialized Counting Architectures and Vision-Language Models17 Dec 2025
- 2025CountQA: How Well Do MLLMs Count in the Wild?8 Aug 2025
- 2025Token Activation Map to Visually Explain Multimodal LLMs29 Jun 2025
- 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Models1 Dec 2024
- 2023Point, Segment and Count: A Generalized Framework for Object Countingcited by 39
- 2024Zero-shot Object Counting with Good Exemplarscited by 21
- 2025T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Countingcited by 19
- 2024OmniCount: Multi-label Object Counting with Semantic-Geometric Priorscited by 16
- 2024Mind the Prompt: A Novel Benchmark for Prompt-based Class-Agnostic Countingcited by 11
- 2024A Fixed-Point Approach to Unified Prompt-Based Countingcited by 10
- 2025CountGD++: Generalized Prompting for Open-World 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
- 2025Point-to-Region Loss for Semi-Supervised Point-Based Crowd Countingcited by 6
- 2023Learning to Count without Annotationscited by 5
- 2024Visual Enumeration Remains Challenging for Multimodal Generative AIcited by 5
12 most cited of 28 All 28 (JSON)
- 2026DualCount: Structurally Consistent Density and Point Modeling for Zero-Shot Object Counting14 Sep 2026
- 2026RECOUNT: Reference-guided Counting with Synthetic Visual Exemplars20 Aug 2026
- 2026AdaCount: Training-Free Similarity-Guided Spatial and Feature Adaptation for Zero-Shot Object Counting2 Jul 2026
- 2026Does it Really Count? Assessing Semantic Grounding in Text-Guided Class-Agnostic Counting4 May 2026
- 2026CountEx: Fine-Grained Counting via Exemplars and Exclusion23 Feb 2026
- 2026OCCAM: Class-Agnostic, Training-Free, Prior-Free and Multi-Class Object Counting20 Jan 2026
- 2025CountGD++: Generalized Prompting for Open-World Counting29 Dec 2025
- 2025CountZES: Counting via Zero-Shot Exemplar Selection18 Dec 2025
- 2025Towards PerSense++: Advancing Training-Free Personalized Instance Segmentation in Dense Images20 Aug 2025
- 2025What is the Right Embedding Space for Contrastive Learning in Referring Expression Counting?28 May 2025
- 2025Point-to-Region Loss for Semi-Supervised Point-Based Crowd Counting28 May 2025
- 2025CountingDINO: A Training-free Pipeline for Class-Agnostic Counting using Unsupervised Backbones23 Apr 2025
12 newest of 28 All 28 (JSON)