Zero-Shot Paragraph-level Handwriting Imitation with Latent Diffusion Models

Martin Mayr, Marcel Dreier, Florian Kordon, Mathias Seuret, Jochen Zöllner +3 more
9/1/2024
cs.CV

No confident code implementation found for this paper.

Abstract

The imitation of cursive handwriting is mainly limited to generating handwritten words or lines. Multiple synthetic outputs must be stitched together to create paragraphs or whole pages, whereby consistency and layout information are lost. To close this gap, we propose a method for imitating handwriting at the paragraph level that also works for unseen writing styles. Therefore, we introduce a modified latent diffusion model that enriches the encoder-decoder mechanism with specialized loss functions that explicitly preserve the style and content. We enhance the attention mechanism of the diffusion model with adaptive 2D positional encoding and the conditioning mechanism to work with two modalities simultaneously: a style image and the target text. This significantly improves the realism of the generated handwriting. Our approach sets a new benchmark in our comprehensive evaluation. It outperforms all existing imitation methods at both line and paragraph levels, considering combined style and content preservation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mayr2024zeroshot,
  title  = {Zero-Shot Paragraph-level Handwriting Imitation with Latent Diffusion Models},
  author = {Martin Mayr and Marcel Dreier and Florian Kordon and Mathias Seuret and Jochen Zöllner and Fei Wu and Andreas Maier and Vincent Christlein},
  year   = {2024},
  eprint = {2409.00786},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.00786v1}
}

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

Discussion