MixSA: Training-free Reference-based Sketch Extraction via Mixture-of-Self-Attention

Rui Yang, Xiaojun Wu, Shengfeng He
1/1/2025
cs.CV

No official code found. Best implementation: rane7/MixSA (4 stars, last commit 2025-08-19).

Abstract

Current sketch extraction methods either require extensive training or fail to capture a wide range of artistic styles, limiting their practical applicability and versatility. We introduce Mixture-of-Self-Attention (MixSA), a training-free sketch extraction method that leverages strong diffusion priors for enhanced sketch perception. At its core, MixSA employs a mixture-of-self-attention technique, which manipulates self-attention layers by substituting the keys and values with those from reference sketches. This allows for the seamless integration of brushstroke elements into initial outline images, offering precise control over texture density and enabling interpolation between styles to create novel, unseen styles. By aligning brushstroke styles with the texture and contours of colored images, particularly in late decoder layers handling local textures, MixSA addresses the common issue of color averaging by adjusting initial outlines. Evaluated with various perceptual metrics, MixSA demonstrates superior performance in sketch quality, flexibility, and applicability. This approach not only overcomes the limitations of existing methods but also empowers users to generate diverse, high-fidelity sketches that more accurately reflect a wide range of artistic expressions.

View on arXivView PDF

Code Implementations(1)

rane7/MixSACommunity73%

MixSA: Training-free Reference-based Sketch Extraction via Mixture-of-Self-Attention

42Python, Jupyter NotebookJan 1, 20251 years ago

Similar Papers

Cite this paper

@article{yang2025mixsa,
  title  = {MixSA: Training-free Reference-based Sketch Extraction via Mixture-of-Self-Attention},
  author = {Rui Yang and Xiaojun Wu and Shengfeng He},
  year   = {2025},
  eprint = {2501.00816},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.00816v1}
}

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

Discussion