Diffusion-Based Conditional Image Editing through Optimized Inference with Guidance

Hyunsoo Lee, Minsoo Kang, Bohyung Han
12/20/2024
cs.CV

No official code found. Best implementation: Hleephilip/OIG (2 stars, last commit 2025-06-17).

Abstract

We present a simple but effective training-free approach for text-driven image-to-image translation based on a pretrained text-to-image diffusion model. Our goal is to generate an image that aligns with the target task while preserving the structure and background of a source image. To this end, we derive the representation guidance with a combination of two objectives: maximizing the similarity to the target prompt based on the CLIP score and minimizing the structural distance to the source latent variable. This guidance improves the fidelity of the generated target image to the given target prompt while maintaining the structure integrity of the source image. To incorporate the representation guidance component, we optimize the target latent variable of diffusion model's reverse process with the guidance. Experimental results demonstrate that our method achieves outstanding image-to-image translation performance on various tasks when combined with the pretrained Stable Diffusion model.

View on arXivView PDF

Code Implementations(1)

Hleephilip/OIGCommunity66%

Implementation of "Diffusion-Based Conditional Image Editing through Optimized Inference with Guidance" (WACV 2025).

20PythonJun 17, 20251 years ago

Similar Papers

Cite this paper

@article{lee2024diffusionbased,
  title  = {Diffusion-Based Conditional Image Editing through Optimized Inference with Guidance},
  author = {Hyunsoo Lee and Minsoo Kang and Bohyung Han},
  year   = {2024},
  eprint = {2412.15798},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.15798v1}
}

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

Discussion