Skip to main content
QUICK REVIEW

[Paper Review] DiffSketcher: Text Guided Vector Sketch Synthesis through Latent Diffusion Models

Ximing Xing, Chuang Wang|arXiv (Cornell University)|Jun 26, 2023
Multimodal Machine Learning ApplicationsComputer Science14 citations
TL;DR

DiffSketcher generates high-quality vector free-hand sketches from text by optimizing Bézier curves using an extended SDS loss guided by a pretrained latent diffusion model and attention-based stroke initialization.

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 extit{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ézier 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/.

Motivation & Objective

  • Bridge text and free-hand vector sketch generation without sketch-text paired data.
  • Leverage a pretrained text-to-image diffusion model to guide vector sketch optimization.
  • Improve efficiency and quality via attention-based stroke initialization and specialized loss functions.
  • Enable multiple abstraction levels in sketches through controllable stroke counts and opacity.

Proposed method

  • Represent sketches as a set of Bézier curves with per-stroke opacity and optimize their control points via a differentiable rasterizer.
  • Extend Score Distillation Sampling (SDS) loss to guide curve optimization using a pretrained latent diffusion model as a prior.
  • Use an augmented SDS (ASDS) loss with input augmentations to align sketches with the text prompt while preserving style.
  • Initialize stroke positions using fused cross-attention and self-attention maps from the diffusion model’s UNet to speed up convergence.
  • Incorporate Joint Visual Semantic and Perceptual (JVSP) loss combining LPIPS and CLIP to align semantic content and visual features.

Experimental results

Research questions

  • RQ1Can text prompts alone guide the synthesis of diverse, high-quality vector sketches at varying abstraction levels?
  • RQ2How can diffusion-model priors be transferred to a differentiable rasterizer to optimize vector strokes?
  • RQ3Does attention-based stroke initialization improve sketch fidelity and generation efficiency compared with random initialization?
  • RQ4What loss functions (JVSP, ASDS) yield the best trade-off between semantic alignment and stylistic sketch realism?
  • RQ5How do the generated sketches fare in consistency with prompts and perceptual/aesthetic quality compared to baselines?

Key findings

  • DiffSketcher produces object- and scene-level vector sketches from text prompts with varying abstraction by adjusting the number of strokes.
  • ASDS loss enables diverse, prompt-aligned sketch generation and, when combined with JVSP, improves quality versus using either loss alone.
  • Attention-based initialization using fused cross- and self-attention maps accelerates convergence and improves sketch fidelity.
  • Quantitative measures show higher text-sketch consistency (CLIP cosine similarity) and aesthetic value than baselines (0.3494 vs 0.328 and 0.3075; aesthetic 4.8206 vs 4.3682 and 4.0821).
  • DiffSketcher outperforms CLIPasso and Canny edge-based methods on consistency and aesthetics, and matches or exceeds VectorFusion in several aspects for scene sketches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.