ABC Easy as 123: A Blind Counter for Exemplar-Free Multi-Class Class-agnostic Counting
Michael A. Hobley, Victor A. Prisacariu
TL;DR
ABC123 introduces an exemplar-free, multi-class class-agnostic counting framework built on density-map regression with a multi-head transformer backbone, paired with a Hungarian-based matching stage and an interpretability-focused example-discovery module. The authors also present MCAC, a synthetic dataset with 1–4 object classes per image and detailed annotations to study counting across multiple unseen classes. Empirical results show ABC123 surpasses exemplar-based counting methods on MCAC and transfers effectively to FSC-147/133, while offering explanations of counted objects through discovered examples. This work advances practical, scalable counting in multi-class, open-set scenarios and provides a new benchmark to evaluate exemplar-free counting approaches.
Abstract
Class-agnostic counting methods enumerate objects of an arbitrary class, providing tremendous utility in many fields. Prior works have limited usefulness as they require either a set of examples of the type to be counted or that the query image contains only a single type of object. A significant factor in these shortcomings is the lack of a dataset to properly address counting in settings with more than one kind of object present. To address these issues, we propose the first Multi-class, Class-Agnostic Counting dataset (MCAC) and A Blind Counter (ABC123), a method that can count multiple types of objects simultaneously without using examples of type during training or inference. ABC123 introduces a new paradigm where instead of requiring exemplars to guide the enumeration, examples are found after the counting stage to help a user understand the generated outputs. We show that ABC123 outperforms contemporary methods on MCAC without needing human in-the-loop annotations. We also show that this performance transfers to FSC-147, the standard class-agnostic counting dataset. MCAC is available at MCAC.active.vision and ABC123 is available at ABC123.active.vision.
