GenDet: Painting Colored Bounding Boxes on Images via Diffusion Model for Object Detection
Chen Min, Chengyang Li, Fanjie Kong, Qi Zhu, Dawei Zhao, Liang Xiao
TL;DR
GenDet redefines object detection as image-conditioned generation by fine-tuning a pre-trained Stable Diffusion model to paint colored bounding boxes directly onto the input image, effectively modeling the conditional distribution $D(oldsymbol{y}|oldsymbol{x})$. It introduces a dual-path, multi-step diffusion framework with a gradient-preserving loss and both feature-based and learning-based post-processing to extract detections from generated outputs. The approach demonstrates competitive performance on COCO2017 and CrowdHuman, illustrating the viability of generation-based detection and the benefit of leveraging rich generative priors for structured visual understanding. This work points to a broader paradigm where discriminative tasks are solved within generative models, enabling unified pipelines for synthesis and perception with potential gains in flexibility and transferability.
Abstract
This paper presents GenDet, a novel framework that redefines object detection as an image generation task. In contrast to traditional approaches, GenDet adopts a pioneering approach by leveraging generative modeling: it conditions on the input image and directly generates bounding boxes with semantic annotations in the original image space. GenDet establishes a conditional generation architecture built upon the large-scale pre-trained Stable Diffusion model, formulating the detection task as semantic constraints within the latent space. It enables precise control over bounding box positions and category attributes, while preserving the flexibility of the generative model. This novel methodology effectively bridges the gap between generative models and discriminative tasks, providing a fresh perspective for constructing unified visual understanding systems. Systematic experiments demonstrate that GenDet achieves competitive accuracy compared to discriminative detectors, while retaining the flexibility characteristic of generative methods.
