Skip to content

MCG-NJU/DEQDet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEQDet

This is the official code implementation for ICCV23 paper Deep Equilibrium Object Detection.

Introduction

we extend DEQ model to Query-based object detector through formulating the refinement process of decoder as fixed-point iteration.

image-20230825094008831

TL;DR Query-based object detectors directly decode image features into object instances with a set of learnable queries. These query vectors are progressively refined to stable meaningful representations through a sequence of decoder layers, and then used to directly predict object locations and categories with simple FFN heads. In this paper, we present a new query-based object detector (DEQDet) by designing a deep equilibrium decoder. Our DEQ decoder models the query vector refinement as the fixed point solving of an implicit layer and is equivalent to applying infinite steps of refinement. To be more specific to object decoding, we use a two-step unrolled equilibrium equation to explicitly capture the query vector refinement. Accordingly, we are able to incorporate refinement awareness into the DEQ training with the inexact gradient back-propagation (RAG). In addition, to stabilize the training of our DEQDet and improve its generalization ability, we devise the deep supervision scheme on the optimization path of DEQ with refinement-aware perturbation~(RAP). Our experiments demonstrate DEQDet converges faster, consumes less memory, and achieves better results than the baseline counterpart (AdaMixer). In particular, our DEQDet with ResNet50 backbone and 300 queries achieves the 49.5 mAP and 33.0 APs on the MS COCO benchmark under 2× training scheme (24 epochs).

Model Released

The pretrained models can be found in release page.

detector backbone mAP mAP50 mAP75 ckpt
deqdet(2x) r50 49.6 68.0 54.0 download
deqdet(2x) r101 50.5 69.1 55.0 download
deqdet(2x) swins 54.0 73.4 58.9 download
deqdet(1x) r50 46.0 64.8 49.6 download

Train and Evaluate

The training script is as same as mmdetection code base. Thus before exploring DEQDet, install mmdetection first. to train deqdet armed with R50 under 2x setting

bash tools/dist_train.sh projects/configs/eqdet_r50_2x_coco.py 8 

for test

bash tools/dist_test.sh projects/configs/eqdet_r50_2x_coco.py deqdet_r50_2x_epoch_24.pth 8

Notebook and visualization

The convergence stablity in fix-point iteration looks like:

relative error in iteration absolute error in iteration
rel abs

A visualization notebook is also provided to demonstrate the detection power of deqdet.

original image deqdet/deqseg with R50 deqdet/deqseg with R101 deqdet/deqseg with swins
catcow catcow catcow catcow
catcow catcow catcow catcow
catcow catcow catcow no money to train and left mask generated from mask2former like global mask head
catcow catcow catcow no money to train and left mask generated from QunerInst like local mask head

Acknowledgement

About

[ICCV 2023] Deep Equilibrium Object Detection

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •