Skip to main content
QUICK REVIEW

[论文解读] detrex: Benchmarking Detection Transformers

Tianhe Ren, Shilong Liu|arXiv (Cornell University)|Jun 12, 2023
Advanced Neural Network Applications被引用 15
一句话总结

detrex 提供一个模块化、轻量级的框架和 DETR 基模型的综合基准套件,提升可复现性并实现检测、分割和姿态估计任务之间的公平比较。

ABSTRACT

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.

研究动机与目标

  • 为基于 DETR 的模型提供一个统一、模块化的平台,用于开发和评估。
  • 在标准数据集上对 DETR 基于的检测、分割和姿态估计算法进行基准评测。
  • 通过训练和超参数优化提升可复现实验的性能。
  • 在骨干网络和变体之间的模型性能、训练成本和推理速度方面提供公平比较。

提出的方法

  • 模块化设计:六个核心组件(Backbone、Encoder、Query Initialization、Decoder、Matcher、Loss)及可扩展的扩展。
  • 轻量级训练引擎和基于 LazyConfig 的配置,便于灵活试验。
  • 在 COCO val2017 上对 DETR 变体进行全面基准测试,包括训练成本、FLOPs、FPS 和内存。
  • 使用 DINO 作为默认检测器,对 Backbone 和模型变体进行基准测试。
  • 消融和超参数研究以识别敏感性和性能提升。
  • 提供多种基于 DETR 的模型(如 Deformable-DETR、DINO、H-DETR、DAB-DETR、DN-DETR)以及分割/姿态估计方法以实现可重复性。

实验结果

研究问题

  • RQ1统一框架如何提升 DETR 基模型间的可复现性和公平比较?
  • RQ2训练超参数和骨干网络对 DETR 基检测器的影响是什么?
  • RQ3在标准化基准下,DETR 基模型在检测、分割和姿态估计任务上的表现如何?
  • RQ4像 NMS 这样的后处理对 DETR 变体是否仍有益?
  • RQ5在统一代码库内通过仔细的参数调整能实现哪些基线改进?

主要发现

模型#epAPAP 50AP 75AP SAP MAP L#参数GFLOPsFPS内存GPU-h
Deformable-DETR-Two-Stage5048.267.052.230.751.463.041.2M175.6 ± 19.126.311.0GB208h
Anchor-DETR5041.962.944.622.046.059.737.0M92.7 ± 9.227.844.7GB168h
Conditional-DETR5041.663.043.921.445.259.843.4M89.1 ± 9.737.86.4GB164h
DAB-DETR5043.363.945.923.447.162.143.7M90.4 ± 9.732.95.0GB214h
DN-DETR5044.765.347.523.748.764.143.7M90.5 ± 9.732.25.1GB240h
DAB-Deformable-DETR5049.067.453.431.552.164.447.4M231.3 ± 25.123.410.5GB230h
DAB-Deformable-DETR-Two-Stage5049.768.054.331.953.264.747.5M235.4 ± 25522.110.5GB220h
DINO-4scale1249.767.054.431.452.963.647.7M244.5 ± 25.524.610.9GB67h
H-DETR1249.166.953.732.252.363.847.9M268.1 ± 24.722.412.0GB80h
DETA-5scale1250.267.455.232.354.265.048.4M247.1 ± 25.915.310.8GB53h
Backbone Variants (ResNet-50, Swin, ViT, ConvNeXt, InternImage, 等)
  • detrex 能实现对超过 15 种主流 DETR 基算法的可复现实验,并在性能上优于原始实现。
  • NMS 后处理在 DETR 变体上提供稳定的增益,特别是在 AP50 和 APL 上,默认阈值为 0.8。
  • 超参数调优在若干模型上带来显著的性能提升(例如在 Deformable-DETR-Two-Stage 的调优设置下,AP 提升高达 1.3)。
  • 在不同骨干网络中,更大的预训练骨干和更新的架构(如 Swin、FocalNet、InternImage)在基于 DETR 的检测器中带来更高的 AP。
  • DINO 和 DETA 在 DETR 变体中收敛速度快,而 Conditional-DETR 在推理速度快且内存占用低。
  • Detrex 的复现带来改进,如 Deformable-DETR(+0.4 AP)和 Deformable-DETR-Two-Stage(+1.1 AP),相较于原始实现。
  • 分割和姿态估计方法(Mask2Former、MP-Former、MaskDINO、ED-Pose)与报道结果一致,验证 detrex 作为可靠基准。

更好的研究,从现在开始

从论文设计到论文写作,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。