Segmentation in Style: Unsupervised Semantic Image Segmentation with Stylegan and CLIP

Daniil Pakhomov, Sanchit Hira, Narayani Wagle, Kemar E. Green, Nassir Navab
7/26/2021
cs.CV

Official code: warmspringwinds/segmentation_in_style (146 stars, Jupyter Notebook, last commit 2022-08-15).

Abstract

We introduce a method that allows to automatically segment images into semantically meaningful regions without human supervision. Derived regions are consistent across different images and coincide with human-defined semantic classes on some datasets.

Show full abstract

In cases where semantic regions might be hard for human to define and consistently label, our method is still able to find meaningful and consistent semantic classes. In our work, we use pretrained StyleGAN2 generative model: clustering in the feature space of the generative model allows to discover semantic classes. Once classes are discovered, a synthetic dataset with generated images and corresponding segmentation masks can be created. After that a segmentation model is trained on the synthetic dataset and is able to generalize to real images. Additionally, by using CLIP we are able to use prompts defined in a natural language to discover some desired semantic classes. We test our method on publicly available datasets and show state-of-the-art results.

View on arXivView PDF

Code Implementations(1)

https://arxiv.org/abs/2107.12518

14614Jupyter Notebook, PythonJul 16, 20214 years ago

Similar Papers

Cite this paper

@article{pakhomov2021segmentation,
  title  = {Segmentation in Style: Unsupervised Semantic Image Segmentation with Stylegan and CLIP},
  author = {Daniil Pakhomov and Sanchit Hira and Narayani Wagle and Kemar E. Green and Nassir Navab},
  year   = {2021},
  eprint = {2107.12518},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.12518}
}

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/2107.12518.svg)](https://codeofpaper.com/paper/2107.12518)

Discussion