A Simple-but-effective Baseline for Training-free Class-Agnostic Counting

Yuhao Lin, Haiming Xu, Lingqiao Liu, Javen Qinfeng Shi
3/3/2024
cs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Class-Agnostic Counting (CAC) seeks to accurately count objects in a given image with only a few reference examples. While previous methods achieving this relied on additional training, recent efforts have shown that it's possible to accomplish this without training by utilizing pre-existing foundation models, particularly the Segment Anything Model (SAM), for counting via instance-level segmentation. Although promising, current training-free methods still lag behind their training-based counterparts in terms of performance. In this research, we present a straightforward training-free solution that effectively bridges this performance gap, serving as a strong baseline. The primary contribution of our work lies in the discovery of four key technologies that can enhance performance. Specifically, we suggest employing a superpixel algorithm to generate more precise initial point prompts, utilizing an image encoder with richer semantic knowledge to replace the SAM encoder for representing candidate objects, and adopting a multiscale mechanism and a transductive prototype scheme to update the representation of reference examples. By combining these four technologies, our approach achieves significant improvements over existing training-free methods and delivers performance on par with training-based ones.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{lin2024simplebuteffective,
  title  = {A Simple-but-effective Baseline for Training-free Class-Agnostic Counting},
  author = {Yuhao Lin and Haiming Xu and Lingqiao Liu and Javen Qinfeng Shi},
  year   = {2024},
  eprint = {2403.01418},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.01418v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.01418.svg)](https://codeofpaper.com/paper/2403.01418)

Discussion