arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.02309cs.CV
收藏

在线中文手写生成中布局与字形的解耦

Decoupling Layout from Glyph in Online Chinese Handwriting Generation

School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Min-Si Ren, Yan-Ming Zhang, Yi Chen

AI总结:

本文提出将中文手写文本行解耦为布局与字形,通过布局生成器与扩散字体合成器分层生成,在CASIA-OLHWDB上实现结构正确且难以区分的模仿样本。

摘要:

文本在人类文明传承中扮演着至关重要的角色,教机器生成各种风格的在线手写文本是一项有趣且具有重大意义的挑战。然而,以往的大多数工作集中于生成单个中文字体,完整的文本行生成在很大程度上尚未被探索。在本文中,我们识别出文本行可以自然地分为两个组成部分:布局和字形。基于这一划分,我们设计了一个文本行布局生成器,并搭配一个基于扩散的风格化字体合成器,以分层方式应对这一挑战。具体而言,布局生成器基于文本内容和提供的风格参考进行类似上下文的学习,以自回归方式为每个字形生成位置。同时,字体合成器由字符嵌入字典、多尺度书法风格编码器和基于一维U-Net的扩散去噪器组成,将在每个位置上生成字体,同时模仿从给定风格参考中提取的书法风格。在CASIA-OLHWDB上的定性和定量实验表明,我们的方法能够生成结构正确且难以区分的模仿样本。

英文摘要:

Text plays a crucial role in the transmission of human civilization, and teaching machines to generate online handwritten text in various styles presents an interesting and significant challenge. However, most prior work has concentrated on generating individual Chinese fonts, leaving {complete text line generation largely unexplored}. In this paper, we identify that text lines can naturally be divided into two components: layout and glyphs. Based on this division, we designed a text line layout generator coupled with a diffusion-based stylized font synthesizer to address this challenge hierarchically. More concretely, the layout generator performs in-context-like learning based on the text content and the provided style references to generate positions for each glyph autoregressively. Meanwhile, the font synthesizer which consists of a character embedding dictionary, a multi-scale calligraphy style encoder, and a 1D U-Net based diffusion denoiser will generate each font on its position while imitating the calligraphy style extracted from the given style references. Qualitative and quantitative experiments on the CASIA-OLHWDB demonstrate that our method is capable of generating structurally correct and indistinguishable imitation samples.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑