Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Diffuse, Attend, and Segment: Unsupervised Zero-Shot Segmentation using Stable Diffusion

About

Producing quality segmentation masks for images is a fundamental problem in computer vision. Recent research has explored large-scale supervised training to enable zero-shot segmentation on virtually any image style and unsupervised training to enable segmentation without dense annotations. However, constructing a model capable of segmenting anything in a zero-shot manner without any annotations is still challenging. In this paper, we propose to utilize the self-attention layers in stable diffusion models to achieve this goal because the pre-trained stable diffusion model has learned inherent concepts of objects within its attention layers. Specifically, we introduce a simple yet effective iterative merging process based on measuring KL divergence among attention maps to merge them into valid segmentation masks. The proposed method does not require any training or language dependency to extract quality segmentation for any images. On COCO-Stuff-27, our method surpasses the prior unsupervised zero-shot SOTA method by an absolute 26% in pixel accuracy and 17% in mean IoU. The project page is at \url{https://sites.google.com/view/diffseg/home}.

Junjiao Tian, Lavisha Aggarwal, Andrea Colaco, Zsolt Kira, Mar Gonzalez-Franco• 2023

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K (val)
mIoU37.7
2731
Semantic segmentationADE20K
mIoU37.7
936
Semantic segmentationCityscapes
mIoU16.8
578
Semantic segmentationCityscapes (val)
mIoU21.2
572
Semantic segmentationPASCAL VOC (val)
mIoU49.8
338
Semantic segmentationPASCAL Context (val)
mIoU48.8
323
Semantic segmentationPascal VOC
mIoU0.498
172
Semantic segmentationCOCO Object (val)
mIoU0.232
77
Semantic segmentationCOCO Stuff-27 (val)
mIoU44.2
75
Semantic segmentationCOCO Object
mIoU23.2
73
Showing 10 of 15 rows

Other info

Code

Follow for update