DQ-DETR: DETR with Dynamic Query for Tiny Object Detection

May 15, 2025 · View on GitHub

method

  • This repository is an official implementation of the paper DQ-DETR: DETR with Dynamic Query for Tiny Object Detection.
  • The original repository link was https://github.com/Katie0723/DQ-DETR. Here is the updated link.

News

[2024/12/06] We released the organized datasets AI-TOD-V1 and AI-TOD-V2.

[2024/7/1]: DQ-DETR has been accepted by ECCV 2024. 🔥🔥🔥

[2024/5/3]: DNTR has been accepted by TGRS 2024. 🔥🔥🔥

Installation -- Compiling CUDA operators

  • The code are built upon the official DINO DETR repository.
conda create -n dqdetr python=3.9 --y
conda activate dqdetr
bash install.sh

Eval models

bash scripts/DQ_eval.sh /path/to/your/dataset /path/to/your/checkpoint

Trained Model

  • Changed the pretrained model path in DQ.sh
CUDA_VISIBLE_DEVICES=5,6,7 bash scripts/DQ.sh /path/to/your/dataset

Our works on Tiny Object Detection

TitleVenueLinks
DNTRTGRS 2024Paper | code
DQ-DETRECCV 2024Paper | code

Performance

Table 1. Training Set: AI-TOD-V2 trainval set, Testing Set: AI-TOD-V2 test set, 36 epochs, where FRCN, DR denotes Faster R-CNN and DetectoRS, respectively.

MethodBackbonemAPAP50AP75APvtAPtAPsAPm
Faster R-CNNR-5011.126.37.60.07.223.333.6
NWD-RKAR-5023.453.516.88.723.828.536.0
DAB-DETRR-5022.455.614.39.021.728.338.7
DINO-DETRR-5025.961.317.512.725.332.039.7
DQ-DETRR-5030.569.222.715.230.936.845.5

AI-TOD-v1 and AI-TOD-v2 Datasets (Don’t forget to leave us a ⭐)

  • Step 1: Download the datasets from the below link.
https://drive.google.com/drive/folders/1CowS5BrujefWQxxlmOFfUuLOfUUm8w6U?usp=sharing
  • Step 2: Organize the downloaded files in the following way.
├─ Dataset
   └─ aitod
       ├─ annotations
       ├─ images
       ├─ test
       ├─ train
       ├─ trainval
       └─ val
├─ DQ-DETR

Pretrained Weights

Citation


@InProceedings{huang2024dq,
author={Huang, Yi-Xin and Liu, Hou-I and Shuai, Hong-Han and Cheng, Wen-Huang},
title={DQ-DETR: DETR with Dynamic Query for Tiny Object Detection},
booktitle={European Conference on Computer Vision},
pages={290--305},
year={2025},
organization={Springer}
}

@ARTICLE{10518058,
  author={Liu, Hou-I and Tseng, Yu-Wen and Chang, Kai-Cheng and Wang, Pin-Jyun and Shuai, Hong-Han and Cheng, Wen-Huang},
  journal={IEEE Transactions on Geoscience and Remote Sensing}, 
  title={A DeNoising FPN With Transformer R-CNN for Tiny Object Detection}, 
  year={2024},
  volume={62},
  number={},
  pages={1-15},
}