MaskSketch: Unpaired Structure-guided Masked Image Generation

D. Bashkirova, José Lezama, Kihyuk Sohn, Kate Saenko, Irfan Essa
2/14/2026

No official code found. Best implementation: google-research/masksketch (57 stars, Apache-2.0, last commit 2024-07-30).

Abstract

Recent conditional image generation methods produce images of remarkable diversity, fidelity and realism. However, the majority of these methods allow conditioning only on labels or text prompts, which limits their level of control over the generation result. In this paper, we introduce MaskSketch, an image generation method that allows spatial conditioning of the generation result using a guiding sketch as an extra conditioning signal during sampling. MaskSketch utilizes a pretrained masked generative transformer, requiring no model training or paired supervision, and works with input sketches of different levels of abstraction. We show that intermediate self-attention maps of a masked generative transformer encode important structural information of the input image, such as scene layout and object shape, and we propose a novel sampling method based on this observation to enable structure-guided generation. Our results show that MaskSketch achieves high image realism and fidelity to the guiding structure. Evaluated on standard benchmark datasets, MaskSketch outperforms state-of-the-art methods for sketch-to-image translation, as well as unpaired image-to-image translation approaches. The code can be found on our project website: https://masksketch.github.io/

View on arXivView PDF

Code Implementations(1)

Apache-2.0
574Shell, PythonDec 14, 20222 years agoApache-2.0

Similar Papers

Cite this paper

@article{bashkirova2026masksketch,
  title  = {MaskSketch: Unpaired Structure-guided Masked Image Generation},
  author = {D. Bashkirova and José Lezama and Kihyuk Sohn and Kate Saenko and Irfan Essa},
  year   = {2026},
  eprint = {2302.05496},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2302.05496},
  journal = {CVPR 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/2302.05496.svg)](https://codeofpaper.com/paper/2302.05496)

Discussion