Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line Generation

Gang Dai, Yi-Fan Zhang, Yu-Tao Qin, Qiang-Ya Guo, Shuang-Ping Huang +1 more
8/1/2025
15 citations

No official code found. Best implementation: dailenson/DiffBrush (198 stars, MIT, last commit 2025-11-24).

Abstract

Existing handwritten text generation methods primarily focus on isolated words. However, realistic handwritten text demands attention not only to individual words but also to the relationships between them, such as vertical alignment and horizontal spacing.

Show full abstract

Therefore, generating entire text line emerges as a more promising and comprehensive task. However, this task poses significant challenges, including the accurate modeling of complex style patterns—encompassing both intra- and inter-word relationships—and maintaining content accuracy across numerous characters. To address these challenges, we propose DiffBrush, a novel diffusion-based model for handwritten text-line generation. Unlike existing methods, Diff-Brush excels in both style imitation and content accuracy through two key strategies: (1) content-decoupled style learning, which disentangles style from content to better capture intra-word and inter-word style patterns by using column- and row-wise masking; and (2) multi-scale content learning, which employs line and word discriminators to ensure global coherence and local accuracy of textual content. Extensive experiments show that DiffBrush excels in generating high-quality text-lines, particularly in style reproduction and content preservation. Code is available at https://github.com/dailenson/DiffBrush

View on arXivView PDF

Code Implementations(1)

MIT

Official Code for ICCV 2025 paper — Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line Generation

19818Jun 26, 20251 years agoMIT

Similar Papers

Cite this paper

@article{dai2025beyond,
  title  = {Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line Generation},
  author = {Gang Dai and Yi-Fan Zhang and Yu-Tao Qin and Qiang-Ya Guo and Shuang-Ping Huang and Shuicheng Yan},
  year   = {2025},
  eprint = {2508.03256},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2508.03256},
  journal = {IEEE International Conference on Computer Vision}
}

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

Discussion