Training-Free Sketch-Guided Diffusion with Latent Optimization

Sandra Zhang Ding, Jiafeng Mao, Kiyoharu Aizawa
8/31/2024
cs.CV

No confident code implementation found for this paper.

Abstract

Based on recent advanced diffusion models, Text-to-image (T2I) generation models have demonstrated their capabilities to generate diverse and high-quality images. However, leveraging their potential for real-world content creation, particularly in providing users with precise control over the image generation result, poses a significant challenge. In this paper, we propose an innovative training-free pipeline that extends existing text-to-image generation models to incorporate a sketch as an additional condition. To generate new images with a layout and structure closely resembling the input sketch, we find that these core features of a sketch can be tracked with the cross-attention maps of diffusion models. We introduce latent optimization, a method that refines the noisy latent at each intermediate step of the generation process using cross-attention maps to ensure that the generated images adhere closely to the desired structure outlined in the reference sketch. Through latent optimization, our method enhances the accuracy of image generation, offering users greater control and customization options in content creation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{ding2024trainingfree,
  title  = {Training-Free Sketch-Guided Diffusion with Latent Optimization},
  author = {Sandra Zhang Ding and Jiafeng Mao and Kiyoharu Aizawa},
  year   = {2024},
  eprint = {2409.00313},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.00313v2}
}

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

Discussion