No Annotations for Object Detection in Art through Stable Diffusion
Patrick Ramos, Nicolas Gonthier, Selina Khan, Yuta Nakashima, Noa Garcia
TL;DR
This work tackles object detection in art under limited supervision by introducing NADA, a two-module pipeline that combines a class proposer (weakly-supervised or zero-shot) with a diffusion-based class-conditioned detector. The detector leverages Stable Diffusion cross-attention maps obtained via inversion and reconstruction to generate bounding boxes through watershed segmentation, without fine-tuning pretrained components. The WSCP and ZSCP variants enable detection across ArtDL 2.0 and IconArt, achieving state-of-the-art weakly-supervised results and presenting the first zero-shot results in the art domain. Ablation studies show that the class proposer quality drives performance, and prompting strategies influence results, with successful localization demonstrated on WikiArt images, indicating broad applicability to art imagery while reducing annotation burdens.
Abstract
Object detection in art is a valuable tool for the digital humanities, as it allows for faster identification of objects in artistic and historical images compared to humans. However, annotating such images poses significant challenges due to the need for specialized domain expertise. We present NADA (no annotations for detection in art), a pipeline that leverages diffusion models' art-related knowledge for object detection in paintings without the need for full bounding box supervision. Our method, which supports both weakly-supervised and zero-shot scenarios and does not require any fine-tuning of its pretrained components, consists of a class proposer based on large vision-language models and a class-conditioned detector based on Stable Diffusion. NADA is evaluated on two artwork datasets, ArtDL 2.0 and IconArt, outperforming prior work in weakly-supervised detection, while being the first work for zero-shot object detection in art. Code is available at https://github.com/patrick-john-ramos/nada
