Handwriting Transformers

Ankan Kumar Bhunia, Salman Khan, Hisham Cholakkal, Rao Muhammad Anwer, Fahad Shahbaz Khan +1 more
4/8/2021
cs.CV
transformer-attention

Official code: ankanbhunia/Handwriting-Transformers (268 stars, Python, MIT, last commit 2024-02-23).

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 writing 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.

Show full abstract

Further, the proposed transformer-based HWT comprises an encoder-decoder attention that enables style-content entanglement by gathering the style representation of each query character. To the best of our knowledge, we are the first to introduce a transformer-based generative network for styled handwritten text generation. Our proposed HWT generates realistic styled handwritten text images and significantly 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.

View on arXivView PDF

Code Implementations(1)

MIT

Handwriting-Transformers (ICCV21)

26858Python, Jupyter NotebookApr 4, 20212 years agoMIT
generative-aihandwritinghandwriting-generationhandwriting-synthesismimic+1 more

Similar Papers

Cite this paper

@article{bhunia2021handwriting,
  title  = {Handwriting Transformers},
  author = {Ankan Kumar Bhunia and Salman Khan and Hisham Cholakkal and Rao Muhammad Anwer and Fahad Shahbaz Khan and Mubarak Shah},
  year   = {2021},
  eprint = {2104.03964},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.03964}
}

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

Discussion