StrokeFusion: Vector Sketch Generation via Joint Stroke-UDF Encoding and Latent Sequence Diffusion
Jin Zhou, Yi Zhou, Hongliang Yang, Pengfei Xu, Hui Huang
TL;DR
StrokeFusion introduces a dual-modal stroke-UDF encoding to capture both geometric and raster-like cues for vector sketches, followed by a stroke-level latent diffusion model that generates unordered, variable-length stroke sets. The two-stage design decouples layout prediction from shape synthesis and enables permutation-invariant diffusion in latent space, yielding high-fidelity, editable vector sketches across diverse domains. Quantitative results on QuickDraw and other challenging datasets show consistent improvements in FID, precision, and recall, particularly for complex, multi-stroke sketches, while qualitative analyses highlight improved structural coherence and detail. The approach offers practical benefits for vector sketch creation and editing in design tools, enabling robust cross-domain generalization and controllable stroke-level generation.
Abstract
In the field of sketch generation, raster-format trained models often produce non-stroke artifacts, while vector-format trained models typically lack a holistic understanding of sketches, leading to compromised recognizability. Moreover, existing methods struggle to extract common features from similar elements (e.g., eyes of animals) appearing at varying positions across sketches. To address these challenges, we propose StrokeFusion, a two-stage framework for vector sketch generation. It contains a dual-modal sketch feature learning network that maps strokes into a high-quality latent space. This network decomposes sketches into normalized strokes and jointly encodes stroke sequences with Unsigned Distance Function (UDF) maps, representing sketches as sets of stroke feature vectors. Building upon this representation, our framework exploits a stroke-level latent diffusion model that simultaneously adjusts stroke position, scale, and trajectory during generation. This enables high-fidelity sketch generation while supporting stroke interpolation editing. Extensive experiments on the QuickDraw dataset demonstrate that our framework outperforms state-of-the-art techniques, validating its effectiveness in preserving structural integrity and semantic features. Code and models will be made publicly available upon publication.
