DiffusionPen: Towards Controlling the Style of Handwritten Text Generation

Abstract

Handwritten Text Generation (HTG) conditioned on text and style is a challenging task due to the variability of inter-user characteristics and the unlimited combinations of characters that form new words unseen during training. Diffusion Models have recently shown promising results in HTG but still remain under-explored. We present DiffusionPen (DiffPen), a 5-shot style handwritten text generation approach based on Latent Diffusion Models. By utilizing a hybrid style extractor that combines metric learning and classification, our approach manages to capture both textual and stylistic characteristics of seen and unseen words and styles, generating realistic handwritten samples. Moreover, we explore several variation strategies of the data with multi-style mixtures and noisy embeddings, enhancing the robustness and diversity of the generated data. Extensive experiments using IAM offline handwriting database show that our method outperforms existing methods qualitatively and quantitatively, and its additional generated data can improve the performance of Handwriting Text Recognition (HTR) systems. The code is available at: https://github.com/ koninik/DiffusionPen.

Cite

Text

Nikolaidou et al. "DiffusionPen: Towards Controlling the Style of Handwritten Text Generation." Proceedings of the European Conference on Computer Vision (ECCV), 2024. doi:10.1007/978-3-031-73013-9_24

Markdown

[Nikolaidou et al. "DiffusionPen: Towards Controlling the Style of Handwritten Text Generation." Proceedings of the European Conference on Computer Vision (ECCV), 2024.](https://mlanthology.org/eccv/2024/nikolaidou2024eccv-diffusionpen/) doi:10.1007/978-3-031-73013-9_24

BibTeX

@inproceedings{nikolaidou2024eccv-diffusionpen,
  title     = {{DiffusionPen: Towards Controlling the Style of Handwritten Text Generation}},
  author    = {Nikolaidou, Konstantina and Retsinas, George and Sfikas, Giorgos and Liwicki, Marcus},
  booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
  year      = {2024},
  doi       = {10.1007/978-3-031-73013-9_24},
  url       = {https://mlanthology.org/eccv/2024/nikolaidou2024eccv-diffusionpen/}
}