基于潜在扩散模型的零样本段落级手写模仿
Zero-Shot Paragraph-level Handwriting Imitation with Latent Diffusion Models
AI总结:
提出基于潜在扩散模型的零样本段落级手写模仿方法,通过改进模型、增强注意力机制等,能处理未见风格,提高手写生成真实感,在综合评估中表现优异,还公开代码支持相关研究。
摘要:
草书手写模仿主要局限于生成手写单词或线条。多个合成输出必须拼接在一起才能创建段落或整页内容,从而导致一致性和布局信息丢失。为弥补这一差距,我们提出一种段落级手写模仿方法,该方法也适用于未见的书写风格。为此,我们引入一种改进的潜在扩散模型,通过专门的损失函数丰富编码器 - 解码器机制,明确保留风格和内容。我们用自适应二维位置编码增强扩散模型的注意力机制,并使其条件机制能同时处理两种模态:风格图像和目标文本。这显著提高了生成手写的真实感。在综合评估中,我们设定了新基准,在风格保留方面达到61%的平均精度均值(mAP)和56%的top - 1准确率,显著优于之前最佳方法(37% mAP,30% top - 1)。我们将公开代码以支持该领域研究及潜在对策研究。
英文摘要:
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. We set a new benchmark in our comprehensive evaluation, achieving 61 % mAP and 56 % top-1 accuracy in style preservation, significantly outperforming the previous best method (37 % mAP, 30 % top-1). We are making our code publicly available for reproducibility, supporting research in this area and research into potential countermeasures: https://github.com/M4rt1nM4yr/paragraph_handwriting_imitation_ldm
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。