A Recipe for CAC: Mosaic-based Generalized Loss for Improved Class-Agnostic Counting

Tsung-Han Chou, Brian Wang, Wei-Chen Chiu, Jun-Cheng Chen
4/15/2024
cs.CV

Official code: littlepenguin89106/MGCAC (2 stars, MIT, last commit 2024-10-14).

Abstract

Class agnostic counting (CAC) is a vision task that can be used to count the total occurrence number of any given reference objects in the query image. The task is usually formulated as a density map estimation problem through similarity computation among a few image samples of the reference object and the query image. In this paper, we point out a severe issue of the existing CAC framework: Given a multi-class setting, models don't consider reference images and instead blindly match all dominant objects in the query image. Moreover, the current evaluation metrics and dataset cannot be used to faithfully assess the model's generalization performance and robustness. To this end, we discover that the combination of mosaic augmentation with generalized loss is essential for addressing the aforementioned issue of CAC models to count objects of majority (i.e. dominant objects) regardless of the references. Furthermore, we introduce a new evaluation protocol and metrics for resolving the problem behind the existing CAC evaluation scheme and better benchmarking CAC models in a more fair manner. Besides, extensive evaluation results demonstrate that our proposed recipe can consistently improve the performance of different CAC models. The code is available at https://github.com/littlepenguin89106/MGCAC.

View on arXivView PDF

Code Implementations(1)

MIT

[ACCV2024] Official implementation of "A Recipe for CAC: Mosaic-based Generalized Loss for Improved Class-Agnostic Counting"

21PythonOct 6, 20242 years agoMIT
accv2024class-agnostic-countinggeneralized-lossmosaic-data-augmentation

Similar Papers

Cite this paper

@article{chou2024recipe,
  title  = {A Recipe for CAC: Mosaic-based Generalized Loss for Improved Class-Agnostic Counting},
  author = {Tsung-Han Chou and Brian Wang and Wei-Chen Chiu and Jun-Cheng Chen},
  year   = {2024},
  eprint = {2404.09826},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.09826v2}
}

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

Discussion