Skip to main content
QUICK REVIEW

[论文解读] Diffuse, Attend, and Segment: Unsupervised Zero-Shot Segmentation using Stable Diffusion

Junjiao Tian, Lavisha Aggarwal|arXiv (Cornell University)|Aug 23, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用 9
一句话总结

DiffSeg 利用预训练 Stable Diffusion 模型中的自注意力,在无需训练、无需提示的情况下进行分割掩模的无监督零-shot 生成,在 COCO-Stuff-27 上实现了最先进的结果,在 Cityscapes 取得了有竞争力的结果。

ABSTRACT

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}.

研究动机与目标

  • 研究在预训练的 Stable Diffusion 中的自注意力是否包含适合分割的对象分组信号,而无需注释。
  • 开发一个后处理流水线,在不进行训练的情况下将注意力图转换为连贯的分割掩模。
  • 在标准基准测试中展示零-shot 性能,并与现有的无监督方法进行比较。

提出的方法

  • 从无条件的 Stable Diffusion 运行中提取自注意力张量,应用于真实图像。
  • 将多分辨率注意力图聚合为高分辨率表示。
  • 通过迭代合并注意力图,使用 KL 散度形成对象候选掩模,而不预先指定掩模数量。
  • 在候选提案上应用非极大值抑制,生成最终的逐像素分割掩模。
  • 使用像素准确度(ACC)和均值 IoU(mIoU)结合匈牙利匹配与地面真实掩模进行评估。
Figure 1 : Overview of DiffSeg. DiffSeg is an unsupervised and zero-shot segmentation algorithm using a pre-trained stable diffusion model. Starting from $M\times M$ anchor points, DiffSeg iteratively merges self-attention maps from the diffusion model for $N$ iterations to segment any image without
Figure 1 : Overview of DiffSeg. DiffSeg is an unsupervised and zero-shot segmentation algorithm using a pre-trained stable diffusion model. Starting from $M\times M$ anchor points, DiffSeg iteratively merges self-attention maps from the diffusion model for $N$ iterations to segment any image without

实验结果

研究问题

  • RQ1在预训练的 Stable Diffusion 模型中,自注意力是否能揭示足以进行分割的内在对象/分组 signal?在不使用提示或训练的情况下。
  • RQ2是否可以通过简单的后处理从无条件扩散注意力中生成高质量的分割掩模?
  • RQ3在零-shot 分割基准上,DiffSeg 与现有无监督方法相比的表现如何?

主要发现

  • DiffSeg 在 COCO-Stuff-27 的无监督零-shot 分割上达到最先进的结果,像素准确度比前一 SOTA 高出 26 个百分点,均值 IoU 高出 17 个百分点。
  • DiffSeg 不依赖语言或辅助图像,且在 COCO-Stuff-27 的 320×320 与 512×512 分辨率下仍优于此前方法。
  • 在 Cityscapes 上,DiffSeg 与前人零-shot 方法相当或超过,特别是在使用较小输入分辨率以对应类别粒度时。
  • 与替代的无监督基线(如 K-Means 变体)相比,DiffSeg 提供更稳定且更高质量的分割,而无需预先设定簇的数量。
  • 该方法对多样化图像风格(DomainNet 的素描、绘画和真实照片)具有较强的泛化能力。
Figure 2 : Visualization of Segmentation Masks and Self-Attentions Tensors. Left: Overlay of segmentation and the original image. Right: Attention maps from a stable diffusion model have two properties: Intra-Attention Similarity and Inter-Attention Similarity. Maps of different resolutions have var
Figure 2 : Visualization of Segmentation Masks and Self-Attentions Tensors. Left: Overlay of segmentation and the original image. Right: Attention maps from a stable diffusion model have two properties: Intra-Attention Similarity and Inter-Attention Similarity. Maps of different resolutions have var

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。