SEGA: Instructing Text-to-Image Models using Semantic Guidance

Manuel Brack, Felix Friedrich, Dominik Hintersdorf, Lukas Struppek, Patrick Schramowski +1 more
1/28/2023
cs.CVcs.AIcs.LG

No official code found. Best implementation: v0xie/sd-webui-semantic-guidance (68 stars, GPL-3.0, last commit 2024-04-22). 1 more below.

Abstract

Text-to-image diffusion models have recently received a lot of interest for their astonishing ability to produce high-fidelity images from text only. However, achieving one-shot generation that aligns with the user's intent is nearly impossible, yet small changes to the input prompt often result in very different images. This leaves the user with little semantic control. To put the user in control, we show how to interact with the diffusion process to flexibly steer it along semantic directions. This semantic guidance (SEGA) generalizes to any generative architecture using classifier-free guidance. More importantly, it allows for subtle and extensive edits, changes in composition and style, as well as optimizing the overall artistic conception. We demonstrate SEGA's effectiveness on both latent and pixel-based diffusion models such as Stable Diffusion, Paella, and DeepFloyd-IF using a variety of tasks, thus providing strong evidence for its versatility, flexibility, and improvements over existing methods.

View on arXivView PDF

Code Implementations(2)

MIT

2023 NIPS paper "SEGA: Instructing Text-to-Image Models using Semantic Guidance" used for real image edit

20PythonDec 10, 20241 years agoMIT
GPL-3.0

Unofficial implementation of "SEGA: Instructing Text-to-Image Models using Semantic Guidance". Semantic Guidance gives you more control over the semantics of an image given an additional text prompt. An extension for Automatic1111 WebUI.

683PythonNov 9, 20232 years agoGPL-3.0
extensionstable-diffusionstable-diffusion-webuistable-diffusion-webui-plugin

Similar Papers

Cite this paper

@article{brack2023sega,
  title  = {SEGA: Instructing Text-to-Image Models using Semantic Guidance},
  author = {Manuel Brack and Felix Friedrich and Dominik Hintersdorf and Lukas Struppek and Patrick Schramowski and Kristian Kersting},
  year   = {2023},
  eprint = {2301.12247},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.12247v2},
  journal = {NEURIPS 2023 2023}
}

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

Discussion