Lune

ICCV2021Top-tier venue

Handwriting Transformers

Ankan Kumar Bhunia, Salman H. Khan, Hisham Cholakkal, Rao Muhammad Anwer, Fahad Shahbaz Khan, Mubarak Shah

Abstract

We propose a novel transformer-based styled handwritten text image generation approach, HWT, that strives to learn both style-content entanglement as well as global and local style patterns. The proposed HWT captures the long and short range relationships within the style examples through a self-attention mechanism, thereby encoding both global and local style patterns. Further, the proposed transformer-based HWT comprises an encoder-decoder attention that enables style-content entanglement by gathering the style features of each query character. To the best of our knowledge, we are the first to introduce a transformer-based network for styled handwritten text generation.Our proposed HWT generates realistic styled handwritten text images and outperforms the state-of-the-art demonstrated through extensive qualitative, quantitative and human-based evaluations. The proposed HWT can handle arbitrary length of text and any desired writing style in a few-shot setting. Further, our HWT generalizes well to the challenging scenario where both words and writing style are unseen during training, generating realistic styled handwritten text images. Code is available at: https://github.com/ankanbhunia/Handwriting-Transformers

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • AGTGAN: Unpaired Image Translation for Photographic Ancient Character Generation cites ScrabbleGAN: Semi-Supervised Varying Length Handwritten Text Generation
  • Disentangling Writer and Character Styles for Handwriting Generation cites AGTGAN: Unpaired Image Translation for Photographic Ancient Character Generation
  • Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line Generation cites AGTGAN: Unpaired Image Translation for Photographic Ancient Character Generation
  • Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line Generation cites Disentangling Writer and Character Styles for Handwriting Generation
  • Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line Generation cites ScrabbleGAN: Semi-Supervised Varying Length Handwritten Text Generation
  • Look Closer to Supervise Better: One-Shot Font Generation via Component-Based Discriminator cites ScrabbleGAN: Semi-Supervised Varying Length Handwritten Text Generation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Look Closer to Supervise Better: One-Shot Font Generation via Component-Based DiscriminatorYuxin Kong, Canjie Luo, Weihong Ma, Qiyuan Zhu et al.CVPR 2022 · 68 citations
  2. AGTGAN: Unpaired Image Translation for Photographic Ancient Character GenerationHongxiang Huang, Daihui Yang, Gang Dai, Zhen Han et al.ACM MM 2022 · 31 citations
  3. Efficient OCR for Building a Diverse Digital HistoryJacob Carlson, Tom Bryan, Melissa DellACL 2024 · 6 citations
  4. Beyond Isolated Words: Diffusion Brush for Handwritten Text-Line GenerationGang Dai, Yifan Zhang, Yutao Qin, Qiangya Guo et al.ICCV 2025 · 5 citations
  5. Disentangling Writer and Character Styles for Handwriting GenerationGang Dai, Yifan Zhang, Qingfeng Wang, Qing Du et al.CVPR 2023

Builds on2

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. ScrabbleGAN: Semi-Supervised Varying Length Handwritten Text GenerationSharon Fogel, Hadar Averbuch-Elor, Sarel Cohen, Shai Mazor et al.CVPR 2020

Related papers

  1. Handwritten Text Generation from Visual ArchetypesVittorio Pippi, Silvia Cascianelli, Rita CucchiaraCVPR 2023
  2. Zero-Shot Styled Text Image Generation, but Make It AutoregressiveVittorio Pippi, Fabio Quattrini, Silvia Cascianelli, Alessio Tonioni et al.CVPR 2025
  3. Learning to Generate Stylized Handwritten Text via a Unified Representation of Style, Content, and NoiseHonglie Wang, Yan-Ming Zhang, Wangzi Yao, Fei Yin et al.ICLR 2026
  4. HiGAN: Handwriting Imitation Conditioned on Arbitrary-Length Texts and Disentangled StylesJi Gan, Weiqiang WangAAAI 2021 · 48 citations
  5. Puff-Net: Efficient Style Transfer with Pure Content and Style Feature Fusion NetworkSizhe Zheng, Pan Gao, Peng Zhou, Jie QinCVPR 2024 · 20 citations
Dusk over the sea between two cliffs drawn in fine vertical lines