File size: 2,686 Bytes
e6a8186 d7107d7 e6a8186 d7107d7 e6a8186 d7107d7 e6a8186 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
license: mit
pipeline_tag: object-detection
library_name: detectron2
---
# Mr. DETR: Instructive Multi-Route Training for Detection Transformers
[]()
[](https://arxiv.org/abs/2412.10028)
[](https://visual-ai.github.io/mrdetr/)
[](https://paperswithcode.com/sota/object-detection-on-coco-2017-val?p=mr-detr-instructive-multi-route-training-for)
**Paper:** [Mr. DETR: Instructive Multi-Route Training for Detection Transformers](https://huggingface.co/papers/2412.10028)
**Project Page:** https://visual-ai.github.io/mrdetr
**Code:** https://github.com/Visual-AI/Mr.DETR
## Abstract
Existing methods enhance the training of detection transformers by incorporating an auxiliary one-to-many assignment. In this work, we treat the model as a multi-task framework, simultaneously performing one-to-one and one-to-many predictions. We investigate the roles of each component in the transformer decoder across these two training targets, including self-attention, cross-attention, and feed-forward network. Our empirical results demonstrate that any independent component in the decoder can effectively learn both targets simultaneously, even when other components are shared. This finding leads us to propose a multi-route training mechanism, featuring a primary route for one-to-one prediction and two auxiliary training routes for one-to-many prediction. We enhance the training mechanism with a novel instructive self-attention that dynamically and flexibly guides object queries for one-to-many prediction. The auxiliary routes are removed during inference, ensuring no impact on model architecture or inference cost. We conduct extensive experiments on various baselines, achieving consistent improvements as shown in Figure 1.
## Updates
- [04/25] Mr. DETR supports Instance segmentation now. We release the code and pre-trained weights.
- [03/25] We release the code and weights of Mr. DETR for object detection. You may find pre-trained weights at [Huggingface](https://huggingface.co/allencbzhang/Mr.DETR/tree/main).
- [03/25] Mr. DETR is accepted by CVPR 2025.
## Performance
[Demo Video for Street](https://www.bilibili.com/video/BV1ThZnYxE5G/?spm_id_from=333.1387.homepage.video_card.click&vd_source=3b32a049a039d0ef814f8588b3c9b2d9)
[Demo Video for Dense and Crowded Scene](https://www.zhihu.com/zvideo/1890060966391153546)
|