[Paper Review] detrex: Benchmarking Detection Transformers
detrex provides a modular, lightweight framework and comprehensive benchmark suite for DETR-based models, improving reproducibility and enabling fair comparisons across detection, segmentation, and pose estimation tasks.
The DEtection TRansformer (DETR) algorithm has received considerable attention in the research community and is gradually emerging as a mainstream approach for object detection and other perception tasks. However, the current field lacks a unified and comprehensive benchmark specifically tailored for DETR-based models. To address this issue, we develop a unified, highly modular, and lightweight codebase called detrex, which supports a majority of the mainstream DETR-based instance recognition algorithms, covering various fundamental tasks, including object detection, segmentation, and pose estimation. We conduct extensive experiments under detrex and perform a comprehensive benchmark for DETR-based models. Moreover, we enhance the performance of detection transformers through the refinement of training hyper-parameters, providing strong baselines for supported algorithms.We hope that detrex could offer research communities a standardized and unified platform to evaluate and compare different DETR-based models while fostering a deeper understanding and driving advancements in DETR-based instance recognition. Our code is available at https://github.com/IDEA-Research/detrex. The project is currently being actively developed. We encourage the community to use detrex codebase for further development and contributions.
Motivation & Objective
- Provide a unified, modular platform tailored to DETR-based models for development and evaluation.
- Benchmark DETR-based detection, segmentation, and pose estimation algorithms on standard datasets.
- Improve reproduced performance through training and hyper-parameter optimization.
- Offer fair comparisons on model performance, training cost, and inference speed across backbones and variants.
Proposed method
- Modular design: six core components (Backbone, Encoder, Query Initialization, Decoder, Matcher, Loss) with extensible extensions.
- Lightweight training engine and LazyConfig-based configuration for flexible experimentation.
- Comprehensive benchmarking across DETR variants on COCO val2017, including training cost, FLOPs, FPS, and memory.
- Backbone and model variant benchmarking using DINO as default detector.
- Ablation and hyper-parameter studies to identify sensitivity and performance gains.
- Provision of multiple DETR-based models (e.g., Deformable-DETR, DINO, H-DETR, DAB-DETR, DN-DETR) and segmentation/pose methods for reproducibility.
Experimental results
Research questions
- RQ1How can a unified framework improve reproducibility and fair comparison among DETR-based models?
- RQ2What is the impact of training hyper-parameters and backbones on DETR-based detectors?
- RQ3How do DETR-based models perform across detection, segmentation, and pose estimation tasks under standardized benchmarks?
- RQ4Does post-processing like NMS still provide benefits for DETR variants?
- RQ5What baseline improvements can be achieved by careful parameter tuning within a unified codebase?
Key findings
- detrex enables reproducible reproductions of over 15 mainstream DETR-based algorithms with improved performance over original implementations.
- NMS post-processing provides consistent gains on DETR variants, especially AP50 and APL, with a default threshold of 0.8.
- Hyper-parameter tuning yields significant performance gains across several models (e.g., up to 1.3 AP for Deformable-DETR-Two-Stage under tuned settings).
- Across backbones, larger pretrained backbones and newer architectures (e.g., Swin, FocalNet, InternImage) yield higher AP in DETR-based detectors.
- DINO and DETA show fast convergence among DETR variants, while Conditional-DETR offers fast inference with low memory usage.
- Detrex reproductions deliver improvements such as Deformable-DETR (+0.4 AP) and Deformable-DETR-Two-Stage (+1.1 AP) over original implementations.
- Segmentation and pose estimation methods (Mask2Former, MP-Former, MaskDINO, ED-Pose) align with reported results, validating detrex as a reliable benchmark.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.