T-Rex2

T-Rex2

โ˜… 3.8 ๐Ÿ”– 1200 saves ๐Ÿ’ฐ Freemium GitHub

T-Rex2 is a generic object detection model from IDEA Research that works through text-visual prompt synergy, with this repository providing its API code on GitHub, where it has about 2,700 stars. It detects and counts objects in images using either text descriptions, visual examples, or both.

Overview

Traditional detectors are limited to fixed category lists. T-Rex2 is open-set: you point it at an image with a visual prompt, such as drawing a box around one example, or describe targets in text, and it finds all matching objects, which makes it strong at interactive detection and object counting in cluttered scenes. The repository contains example code for calling the T-Rex2 API hosted on DeepDataSpace, plus guidance for the interactive playground. The work was presented at ECCV 2024, and the team has since released Rex-Omni, a fully open-sourced successor. The repo remains maintained, with updates in 2025.

Key Features

  • Open-set object detection beyond fixed category lists
  • Visual prompts: detect by example with one reference box
  • Text prompts for describing targets in language
  • Accurate object counting in dense scenes
  • Interactive detection workflow with a live playground
  • API examples for integrating detection into applications

๐Ÿ’ณ Pricing

The API code in this repository is open source. Running T-Rex2 uses the DeepDataSpace cloud API, which requires an API key and paid usage beyond any trial quota, so the practical path is freemium.

Who Is It For

T-Rex2 is for computer vision developers and researchers who need flexible, prompt-driven detection and counting without training a custom detector for every new category.

๐Ÿš€ Visit T-Rex2 Official Site

๐Ÿšฉ Report an issue