Peekaboo: Text to Image Diffusion Models are Zero-Shot Segmentors

Ryan Burgert, Kanchana Ranasinghe, Xiang Li, Michael S. Ryoo
11/23/2022
cs.CVcs.CLcs.LG
diffusion-flow

Official code: RyannDaGreat/peekaboo (31 stars, Jupyter Notebook, last commit 2024-06-02).

Abstract

Recently, text-to-image diffusion models have shown remarkable capabilities in creating realistic images from natural language prompts. However, few works have explored using these models for semantic localization or grounding.

Show full abstract

In this work, we explore how an off-the-shelf text-to-image diffusion model, trained without exposure to localization information, can ground various semantic phrases without segmentation-specific re-training. We introduce an inference time optimization process capable of generating segmentation masks conditioned on natural language prompts. Our proposal, Peekaboo, is a first-of-its-kind zero-shot, open-vocabulary, unsupervised semantic grounding technique leveraging diffusion models without any training. We evaluate Peekaboo on the Pascal VOC dataset for unsupervised semantic segmentation and the RefCOCO dataset for referring segmentation, showing results competitive with promising results. We also demonstrate how Peekaboo can be used to generate images with transparency, even though the underlying diffusion model was only trained on RGB images - which to our knowledge we are the first to attempt. Please see our project page, including our code: https://ryanndagreat.github.io/peekaboo

View on arXivView PDF

Code Implementations(1)

Peekaboo: Text to Image Diffusion Models are Zero-Shot Segmentors

312Jupyter Notebook, PythonDec 9, 20222 years ago

Similar Papers

Cite this paper

@article{burgert2022peekaboo,
  title  = {Peekaboo: Text to Image Diffusion Models are Zero-Shot Segmentors},
  author = {Ryan Burgert and Kanchana Ranasinghe and Xiang Li and Michael S. Ryoo},
  year   = {2022},
  eprint = {2211.13224},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.13224}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.13224.svg)](https://codeofpaper.com/paper/2211.13224)

Discussion