Learning To Count Everything

Viresh Ranjan, Udbhav Sharma, Thu Nguyen, Minh Hoai
4/16/2021
cs.CV

Official code: cvlab-stonybrook/LearningToCountEverything (449 stars, Python, MIT, last commit 2023-11-30).

Abstract

Existing works on visual counting primarily focus on one specific category at a time, such as people, animals, and cells. In this paper, we are interested in counting everything, that is to count objects from any category given only a few annotated instances from that category.

Show full abstract

To this end, we pose counting as a few-shot regression task. To tackle this task, we present a novel method that takes a query image together with a few exemplar objects from the query image and predicts a density map for the presence of all objects of interest in the query image. We also present a novel adaptation strategy to adapt our network to any novel visual category at test time, using only a few exemplar objects from the novel category. We also introduce a dataset of 147 object categories containing over 6000 images that are suitable for the few-shot counting task. The images are annotated with two types of annotation, dots and bounding boxes, and they can be used for developing few-shot counting models. Experiments on this dataset shows that our method outperforms several state-of-the-art object detectors and few-shot counting approaches. Our code and dataset can be found at https://github.com/cvlab-stonybrook/LearningToCountEverything.

View on arXivView PDF

Code Implementations(1)

MIT
44984PythonApr 19, 20213 years agoMIT

Similar Papers

Cite this paper

@article{ranjan2021learning,
  title  = {Learning To Count Everything},
  author = {Viresh Ranjan and Udbhav Sharma and Thu Nguyen and Minh Hoai},
  year   = {2021},
  eprint = {2104.08391},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.08391}
}

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/2104.08391.svg)](https://codeofpaper.com/paper/2104.08391)

Discussion