← all repositories
IDEA-Research/detrex

One toolbox wrangling the DETR paper explosion

detrex corrals the sprawling DETR family into a single, modular Detectron2 playground so researchers can benchmark and remix modern detection transformers without maintaining twenty separate codebases.

2.3k stars Python Computer Vision
detrex
Not currently ranked — collecting fresh signals.
star history

What it does detrex is a research toolbox that implements roughly twenty Transformer-based detection and segmentation models — from the original DETR through DINO, MaskDINO, and a half-dozen Deformable-DETR offshoots. It sits on top of Detectron2 and borrows structural ideas from MMDetection, offering a shared training engine and config system for running and comparing these architectures. The goal is to give researchers a common baseline rather than forcing everyone to re-implement each new paper from scratch.

The interesting bit The maintainers treat hyper-parameter optimization as a first-class citizen: they claim to have squeezed out an extra 0.2 to 1.1 AP across most supported algorithms just by tuning, which turns the repo from a simple code collection into an actual benchmarking platform. Also, the name is a triple pun — DETR extension, Latin “king,” and a nod to their DINO work via Tyrannosaurus Rex — which is either charming or a warning about academic humor.

Key highlights

  • Implements ~20 distinct DETR-derived methods (including DINO, MaskDINO, Deformable-DETR, DN-DETR, etc.) under one roof.
  • Modular component design lets you mix and match parts to build custom variants without writing a full training pipeline.
  • Uses Detectron2’s LazyConfig system for cleaner, more flexible configuration files.
  • Claims tuned hyper-parameters improve AP by 0.2–1.1 across most supported models compared to original paper settings.
  • Lightweight training engine modified from Detectron2, plus support for EVA backbones and recent additions like Focus-DETR and SQR-DETR.

Caveats

  • The documentation admits some tutorials are still “relatively simple content,” so expect to dig through code or issues for advanced usage.
  • Because it is essentially a curated layer atop Detectron2 and borrows from MMDetection, it is not a from-scratch framework; if you need something radically different from the supported DETR lineage, you may hit architectural guardrails.

Verdict Researchers working on Transformer-based detection or segmentation who need a fair, shared baseline for comparing variants will save time here. If you are looking for a general-purpose detector outside the DETR family, or need polished production deployment tools, this is not your toolbox.

Frequently asked

What is IDEA-Research/detrex?
detrex corrals the sprawling DETR family into a single, modular Detectron2 playground so researchers can benchmark and remix modern detection transformers without maintaining twenty separate codebases.
Is detrex open source?
Yes — IDEA-Research/detrex is open source, released under the Apache-2.0 license.
What language is detrex written in?
IDEA-Research/detrex is primarily written in Python.
How popular is detrex?
IDEA-Research/detrex has 2.3k stars on GitHub.
Where can I find detrex?
IDEA-Research/detrex is on GitHub at https://github.com/IDEA-Research/detrex.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.