DiffSketcher: Text Guided Vector Sketch Synthesis through Latent Diffusion Models

Ximing Xing, Chuan Wang, Haitao Zhou, Jing Zhang, Qian Yu +1 more
2/12/2026

No official code found. Best implementation: ximinng/DiffSketcher (310 stars, MIT, last commit 2025-02-24).

Abstract

Even though trained mainly on images, we discover that pretrained diffusion models show impressive power in guiding sketch synthesis. In this paper, we present DiffSketcher, an innovative algorithm that creates \textit{vectorized} free-hand sketches using natural language input. DiffSketcher is developed based on a pre-trained text-to-image diffusion model. It performs the task by directly optimizing a set of B\'ezier curves with an extended version of the score distillation sampling (SDS) loss, which allows us to use a raster-level diffusion model as a prior for optimizing a parametric vectorized sketch generator. Furthermore, we explore attention maps embedded in the diffusion model for effective stroke initialization to speed up the generation process. The generated sketches demonstrate multiple levels of abstraction while maintaining recognizability, underlying structure, and essential visual details of the subject drawn. Our experiments show that DiffSketcher achieves greater quality than prior work. The code and demo of DiffSketcher can be found at https://ximinng.github.io/DiffSketcher-project/.

View on arXivView PDF

Code Implementations(1)

MIT

[NIPS 2023] Official implementation for "DiffSketcher: Text Guided Vector Sketch Synthesis through Latent Diffusion Models" https://arxiv.org/abs/2306.14685

31027Shell, PythonJun 24, 20231 years agoMIT
sketchsketch-generationtext-to-sketchtext-to-svg

Similar Papers

Cite this paper

@article{xing2026diffsketcher,
  title  = {DiffSketcher: Text Guided Vector Sketch Synthesis through Latent Diffusion Models},
  author = {Ximing Xing and Chuan Wang and Haitao Zhou and Jing Zhang and Qian Yu and Dong Xu},
  year   = {2026},
  eprint = {2306.14685},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2306.14685},
  journal = {NEURIPS 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/2306.14685.svg)](https://codeofpaper.com/paper/2306.14685)

Discussion