Click and Count: Multimodal Prototype Adaptation for Class-Agnostic Object Counting
Organizations: Université TÉLUQ, Montréal, Québec, Canada · Concordia University, Montréal, Québec, Canada
Abstract
We propose a multimodal, class-agnostic, density-based object counting framework that specifies the object of interest through visual exemplars, a text description, or both, within a single iterative refinement pipeline. Existing counters typically fall into two groups: methods that fuse two modalities, a hand-drawn bounding box and a text description, to specify the target object, and single-modality methods that rely on either a box exemplar or text alone. A few recent methods replace the box with a point or click. We expand a single click into a precise object mask via a frozen visual-prompt segmentation model, feeding an iterative prototype-refinement process that also fuses a text description at every refinement step. We make two contributions: first, a click-derived exemplar extraction module that removes the bounding-box requirement of prior exemplar-based counters; second, a per-step text-fusion mechanism that combines visual and textual prompts throughout refinement. Combined with text guidance, our model achieves state-of-the-art counting accuracy, outperforming prior click-based counting methods across all metrics and surpassing the box-exemplar base architecture in mean absolute error. The code is available at github.com/ameniifi/Click-and-Count.
Figures & tables
| Prompt | Method | Validation MAE | Validation RMSE | Test MAE | Test RMSE |
|---|---|---|---|---|---|
| box | FR [ 18 ] | 45.45 | 112.53 | 41.64 | 141.04 |
| FSOD [ 19 ] | 36.36 | 115.00 | 32.53 | 140.65 | |
| C-DETR [ 20 ] | – | – | 16.79 | 123.56 | |
| SAM [ 21 , 22 ] | 31.20 | 100.83 | 27.97 | 131.24 | |
| SAM-Free [ 16 ] | – | – | 19.95 | 132.16 | |
| LOCA [ 6 ] | 10.24 | 32.56 | 10.79 | 56.97 |
| Dataset Property | FSC-147 | COCO-derived |
|---|---|---|
| Images | 6,135 | 66,823 |
| Categories | 147 | 80 |
| Split protocol | Category-disjoint | Category-disjoint |
| Instances per sample | 3 | 3 |
| Evaluation task | Class-agnostic counting | Class-agnostic counting |
| Dataset | MAE | RMSE | NAE |
|---|---|---|---|
| FSC-147 (point) | 11.57 / 12.31 | 35.69 / 89.40 | 0.23 / 0.26 |
| COCO-derived (point) | 1.57 / 1.48 | 2.23 / 2.11 | 0.27 / 0.28 |
| Method | Val MAE | Val RMSE | Test MAE | Test RMSE |
|---|---|---|---|---|
| LOCA (box) | 10.24 | 32.56 | 10.79 | 56.97 |
| Ours (point) | 11.57 | 35.69 | 12.31 | 89.40 |
| Ours + Text | 9.95 | 36.03 | 9.77 | 68.69 |
Object Counting
Object counting estimates the number and locations of target instances in images or video, from dense crowds to fine-grained categories.
See all 67 papers