Reproduce “T-Rex: Counting by Visual Prompting” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Qing Jiang, Feng Li, Tianhe Ren, Shilong Liu, Zhaoyang Zeng, Kent Yu, Lei Zhang

T-Rex, an interactive model developed by researchers at IDEA, allows users to count any object using visual prompts, addressing limitations in existing methods by providing intuitive bounding box feedback. It achieved state-of-the-art performance with a Mean Absolute Error of 10.59 on the FSC147 benchmark for one-shot counting and demonstrated superior zero-shot capabilities on the new CA-44 dataset, outperforming models like Grounding DINO and GPT-4V in counting accuracy.

Key insights

  • Visual prompts (points or boxes) offer a more intuitive and precise method for specifying objects to count, overcoming the ambiguity and difficulty of textual descriptions in open-vocabulary scenarios.
  • Interactive refinement capabilities, including negative prompts, allow users to correct model errors iteratively, significantly enhancing the reliability and trustworthiness of the final counting results.
  • Providing interpretable bounding box feedback for each counted object directly addresses the shortcomings of density map methods, enabling users to visually verify the accuracy of the count.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.