Stroke2Sketch: Harnessing Stroke Attributes for Training-Free Sketch Generation

Rui Yang, Huining Li, Yiyi Long, Xiaojun Wu, Shengfeng He
10/18/2025
cs.CV

Official code: rane7/Stroke2Sketch (13 stars, last commit 2025-12-06).

Abstract

Generating sketches guided by reference styles requires precise transfer of stroke attributes, such as line thickness, deformation, and texture sparsity, while preserving semantic structure and content fidelity. To this end, we propose Stroke2Sketch, a novel training-free framework that introduces cross-image stroke attention, a mechanism embedded within self-attention layers to establish fine-grained semantic correspondences and enable accurate stroke attribute transfer. This allows our method to adaptively integrate reference stroke characteristics into content images while maintaining structural integrity. Additionally, we develop adaptive contrast enhancement and semantic-focused attention to reinforce content preservation and foreground emphasis. Stroke2Sketch effectively synthesizes stylistically faithful sketches that closely resemble handcrafted results, outperforming existing methods in expressive stroke control and semantic coherence. Codes are available at https://github.com/rane7/Stroke2Sketch.

View on arXivView PDF

Code Implementations(1)

130PythonJul 26, 202510 months ago

Similar Papers

Cite this paper

@article{yang2025strokesketch,
  title  = {Stroke2Sketch: Harnessing Stroke Attributes for Training-Free Sketch Generation},
  author = {Rui Yang and Huining Li and Yiyi Long and Xiaojun Wu and Shengfeng He},
  year   = {2025},
  eprint = {2510.16319},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.16319v1}
}

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

Discussion