Reference-based Image Composition with Sketch via Structure-aware Diffusion Model

Kangyeol Kim, Sunghyun Park, Junsoo Lee, Jaegul Choo
3/31/2023
cs.CVcs.AI

No official code found. Best implementation: kangyeolk/Paint-by-Sketch (183 stars, MIT, PyTorch, last commit 2023-04-23).

Abstract

Recent remarkable improvements in large-scale text-to-image generative models have shown promising results in generating high-fidelity images. To further enhance editability and enable fine-grained generation, we introduce a multi-input-conditioned image composition model that incorporates a sketch as a novel modal, alongside a reference image. Thanks to the edge-level controllability using sketches, our method enables a user to edit or complete an image sub-part with a desired structure (i.e., sketch) and content (i.e., reference image). Our framework fine-tunes a pre-trained diffusion model to complete missing regions using the reference image while maintaining sketch guidance. Albeit simple, this leads to wide opportunities to fulfill user needs for obtaining the in-demand images. Through extensive experiments, we demonstrate that our proposed method offers unique use cases for image manipulation, enabling user-driven modifications of arbitrary scenes.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Stable Diffusion-based image manipulation method with a sketch and reference image

18310Shell, PythonDec 13, 20223 years agoMIT
computer-visiondiffusion-modelsimage-editingimage-generationimage-manipulation+2 more

Cite this paper

@article{kim2023referencebased,
  title  = {Reference-based Image Composition with Sketch via Structure-aware Diffusion Model},
  author = {Kangyeol Kim and Sunghyun Park and Junsoo Lee and Jaegul Choo},
  year   = {2023},
  eprint = {2304.09748},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.09748v1}
}

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

Discussion