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 this https URL.
Abstract (translated)
基于参考风格生成草图时,需要精确地转移笔触属性(如线条厚度、变形和纹理稀疏度),同时保持语义结构和内容保真度。为此,我们提出了Stroke2Sketch,这是一个新颖的无需训练的框架,引入了跨图像笔触注意力机制,该机制嵌入在自注意力层中,以建立细粒度的语义对应关系,并实现精确的笔触属性转移。这使我们的方法能够在保持结构完整性的同时,将参考笔触特征适应性地整合到内容图像中。此外,我们开发了自适应对比增强和语义聚焦注意机制,以强化内容保留和前景强调。Stroke2Sketch能够有效地合成风格忠实的草图,其结果与手工绘制的结果极为相似,在表达性的笔触控制和语义连贯性方面优于现有方法。代码可在[此链接](https://this https URL)获取。
URL
https://arxiv.org/abs/2510.16319