mlsanityData to 14 Oct 2026

Training-free Object Counting with Prompts

arXiv 2307.00038 ↗First posted 30 Jun 2023cs.CVcited by 34

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

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2023Segment Anythingcited by 8,234
  3. 2017Drone-based Object Counting by Spatially Regularized Regional Proposal Networkcited by 156
  4. 2021Learning To Count Everythingcited by 150
  5. 2023A Closer Look at the Explainability of Contrastive Language-Image Pre-trainingcited by 96
  6. 2018Class-Agnostic Countingcited by 85
  7. 2022Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Countingcited by 80
  8. 2022Few-shot Object Counting with Similarity-Aware Feature Enhancementcited by 62
  9. 2023Zero-shot Object Countingcited by 57
  10. 2022Rethinking Spatial Invariance of Convolutional Networks for Object Countingcited by 54
  11. 2019Learning Spatial Awareness to Improve Crowd Countingcited by 36
  12. 2019Counting with Focus for Freecited by 33
9 more
  1. 2022Exemplar Free Class Agnostic Countingcited by 32
  2. 2018Finding any Waldo: zero-shot invariant and efficient visual searchcited by 28
  3. 2019Crowd Counting Using Scale-Aware Attention Networkscited by 20
  4. 2019Improving the Learning of Multi-column Convolutional Neural Network for Crowd Countingcited by 15
  5. 2021Visual Search Asymmetry: Deep Nets and Humans Share Similar Inherent Biasescited by 12
  6. 2020Coarse- and Fine-grained Attention Network with Background-aware Loss for Crowd Density Map Estimationcited by 11
  7. 2021Look Twice: A Generalist Computational Model Predicts Return Fixations across Tasks and Speciescited by 8
  8. 2023Focus for Free in Density-Based Countingcited by 8
  9. 2020Understanding the impact of mistakes on background regions in crowd countingcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 3; 2024: 12; 2025: 12; 2026: 7.

34 papers.

Sort:

By area:

  1. 2023Point, Segment and Count: A Generalized Framework for Object Countingcited by 39
  2. 2025Token Activation Map to Visually Explain Multimodal LLMscited by 32
  3. 2024Zero-shot Object Counting with Good Exemplarscited by 21
  4. 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Modelscited by 20
  5. 2025T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Countingcited by 19
  6. 2025CountQA: How Well Do MLLMs Count in the Wild?cited by 19
  7. 2024OmniCount: Multi-label Object Counting with Semantic-Geometric Priorscited by 16
  8. 2024Mind the Prompt: A Novel Benchmark for Prompt-based Class-Agnostic Countingcited by 11
  9. 2024A Fixed-Point Approach to Unified Prompt-Based Countingcited by 10
  10. 2025CountGD++: Generalized Prompting for Open-World Countingcited by 8
  11. 2025A Survey on Class-Agnostic Counting: Advancements from Reference-Based to Open-World Text-Guided Approachescited by 7
  12. 2025CountingDINO: A Training-free Pipeline for Class-Agnostic Counting using Unsupervised Backbonescited by 6
22 more
  1. 2025Point-to-Region Loss for Semi-Supervised Point-Based Crowd Countingcited by 6
  2. 2023Learning to Count without Annotationscited by 5
  3. 2024Visual Enumeration Remains Challenging for Multimodal Generative AIcited by 5
  4. 2023Industrial Segment Anything -- a Case Study in Aircraft Manufacturing, Intralogistics, Maintenance, Repair, and Overhaulcited by 4
  5. 2024Boosting Few-Shot Semantic Segmentation Via Segment Anything Modelcited by 4
  6. 2025CountLoop: Training-Free High-Instance Image Generation via Iterative Agent Guidancecited by 4
  7. 2024A Simple-but-effective Baseline for Training-free Class-Agnostic Countingcited by 3
  8. 2024SOS: Segment Object System for Open-World Instance Segmentation With Object Priorscited by 3
  9. 2024TFCounter:Polishing Gems for Training-Free Object Countingcited by 2
  10. 2024PerSense: Training-Free Personalized Instance Segmentation in Dense Imagescited by 2
  11. 2024Mutually-Aware Feature Learning for Few-Shot Object Countingcited by 2
  12. 2025What is the Right Embedding Space for Contrastive Learning in Referring Expression Counting?cited by 2
  13. 2025Towards PerSense++: Advancing Training-Free Personalized Instance Segmentation in Dense Imagescited by 2
  14. 2026Does it Really Count? Assessing Semantic Grounding in Text-Guided Class-Agnostic Countingcited by 2
  15. 2025Assessing the Visual Enumeration Abilities of Specialized Counting Architectures and Vision-Language Modelscited by 1
  16. 2026OCCAM: Class-Agnostic, Training-Free, Prior-Free and Multi-Class Object Countingcited by 1
  17. 2026CountEx: Fine-Grained Counting via Exemplars and Exclusioncited by 1
  18. 2026AdaCount: Training-Free Similarity-Guided Spatial and Feature Adaptation for Zero-Shot Object Countingcited by 1
  19. 2025CountZES: Counting via Zero-Shot Exemplar Selectioncited by 0
  20. 2026ABACUS: Adapting Unified Foundation Model for Bridging Image Count Understanding and Generationcited by 0
  21. 2026RECOUNT: Reference-guided Counting with Synthetic Visual Exemplarscited by 0
  22. 2026DualCount: Structurally Consistent Density and Point Modeling for Zero-Shot Object Countingcited by 0