Color Conditional Generation with Sliced Wasserstein Guidance

Alexander Lobashev, Maria Larchenko, Dmitry Guskov
3/24/2025
cs.CV

Official code: alobashev/sw-guidance (33 stars, last commit 2025-12-05).

Abstract

We propose SW-Guidance, a training-free approach for image generation conditioned on the color distribution of a reference image. While it is possible to generate an image with fixed colors by first creating an image from a text prompt and then applying a color style transfer method, this approach often results in semantically meaningless colors in the generated image. Our method solves this problem by modifying the sampling process of a diffusion model to incorporate the differentiable Sliced 1-Wasserstein distance between the color distribution of the generated image and the reference palette. Our method outperforms state-of-the-art techniques for color-conditional generation in terms of color similarity to the reference, producing images that not only match the reference colors but also maintain semantic coherence with the original text prompt. Our source code is available at https://github.com/alobashev/sw-guidance/.

View on arXivView PDF

Code Implementations(1)

[NeurIPS 2025, spotlight] Official implementation of the paper "Color conditional generation with Sliced-Wasserstein Guidance"

330Python, Jupyter NotebookNov 15, 202410 months ago

Similar Papers

Cite this paper

@article{lobashev2025color,
  title  = {Color Conditional Generation with Sliced Wasserstein Guidance},
  author = {Alexander Lobashev and Maria Larchenko and Dmitry Guskov},
  year   = {2025},
  eprint = {2503.19034},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.19034v1},
  journal = {NEURIPS 2025 2025}
}

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

Discussion