CVJun 30, 2023

Training-free Object Counting with Prompts

arXiv:2307.00038v245 citationsh-index: 12Has Code
Originality Incremental advance
AI Analysis

This addresses the problem of labor-intensive data collection for object counting in computer vision, offering a training-free solution that is incremental but practical for various scenarios.

The paper tackles object counting in images without requiring training data by treating it as a segmentation problem using the Segment Anything Model (SAM), and introduces a prior-guided mask generation method to improve accuracy, achieving competitive performance on standard datasets compared to learning-based approaches.

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 \url{https://github.com/shizenglin/training-free-object-counter}

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes