Training-free Object Counting with Prompts

06/30/2023
by   Zenglin Shi, et al.
0

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 free-form 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 model training. Code is available at https://github.com/shizenglin/training-free-object-counter.

READ FULL TEXT

page 4

page 5

page 8

research
07/03/2023

Segment Anything Meets Point Tracking

The Segment Anything Model (SAM) has established itself as a powerful ze...
research
12/15/2022

Text-guided mask-free local image retouching

In the realm of multi-modality, text-guided image retouching techniques ...
research
05/04/2023

Personalize Segment Anything Model with One Shot

Driven by large-data pre-training, Segment Anything Model (SAM) has been...
research
10/15/2021

Counting Objects by Diffused Index: geometry-free and training-free approach

Counting objects is a fundamental but challenging problem. In this paper...
research
06/13/2023

Referring Camouflaged Object Detection

In this paper, we consider the problem of referring camouflaged object d...
research
07/17/2023

Semantic Counting from Self-Collages

While recent supervised methods for reference-based object counting cont...
research
11/15/2017

People, Penguins and Petri Dishes: Adapting Object Counting Models To New Visual Domains And Object Types Without Forgetting

In this paper we propose a technique to adapt a convolutional neural net...

Please sign up or login with your details

Forgot password? Click here to reset