English

T-Rex: Counting by Visual Prompting

Computer Vision and Pattern Recognition 2023-11-23 v1

Abstract

We introduce T-Rex, an interactive object counting model designed to first detect and then count any objects. We formulate object counting as an open-set object detection task with the integration of visual prompts. Users can specify the objects of interest by marking points or boxes on a reference image, and T-Rex then detects all objects with a similar pattern. Guided by the visual feedback from T-Rex, users can also interactively refine the counting results by prompting on missing or falsely-detected objects. T-Rex has achieved state-of-the-art performance on several class-agnostic counting benchmarks. To further exploit its potential, we established a new counting benchmark encompassing diverse scenarios and challenges. Both quantitative and qualitative results show that T-Rex possesses exceptional zero-shot counting capabilities. We also present various practical application scenarios for T-Rex, illustrating its potential in the realm of visual prompting.

Keywords

Cite

@article{arxiv.2311.13596,
  title  = {T-Rex: Counting by Visual Prompting},
  author = {Qing Jiang and Feng Li and Tianhe Ren and Shilong Liu and Zhaoyang Zeng and Kent Yu and Lei Zhang},
  journal= {arXiv preprint arXiv:2311.13596},
  year   = {2023}
}

Comments

Technical report. Work in progress

R2 v1 2026-06-28T13:28:53.331Z