arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.09965cs.CVcs.GR
收藏

通过学习细粒度局部样式生成Few-Shot字体

Few-Shot Font Generation by Learning Fine-Grained Local Styles

Baidu Inc.(百度公司);University of California, Berkeley(加州大学伯克利分校);University of Melbourne(墨尔本大学)

Licheng Tang, Yiyang Cai, Jiaming Liu, Zhibin Hong, Mingming Gong, Minhu Fan, Junyu Han, Jingtuo Liu, Errui Ding, Jingdong Wang

摘要:

Few-Shot字体生成(FFG),其目的是生成一个新的字体与几个例子,正在获得越来越多的关注,由于劳动力成本的显着降低。典型的FFG管道将标准字体库中的字符视为内容字形,并通过从参考字形中提取样式信息将它们传输到新的目标字体。大多数现有的解决方案显式地在全局或组件上分离引用标志符号的内容和样式。但是,字形的风格主要体现在局部细节上,部首、部件、笔画的风格共同构成了字形的风格。因此,即使是单个字符也可以包含分布在空间位置上的不同样式。在本文中,我们提出了一种新的字体生成方法,通过学习1)细粒度的本地风格的参考,和2)的内容和参考字形之间的空间对应关系。因此,可以为内容窗格中的每个空间位置分配正确的细粒度样式。为此,我们采用交叉关注的表示的内容字形作为查询和表示的参考字形作为键和值。交叉注意力机制可以关注参考字形中的正确的局部样式,并将参考样式聚合到给定内容字形的细粒度样式表示中,而不是显式地解开全局或组件式建模。实验结果表明,该方法在FFG中的性能优于现有的方法。特别是,用户研究还表明,我们的方法的风格一致性显着优于以前的方法。

英文摘要:

Few-shot font generation (FFG), which aims to generate a new font with a few examples, is gaining increasing attention due to the significant reduction in labor cost. A typical FFG pipeline considers characters in a standard font library as content glyphs and transfers them to a new target font by extracting style information from the reference glyphs. Most existing solutions explicitly disentangle content and style of reference glyphs globally or component-wisely. However, the style of glyphs mainly lies in the local details, i.e. the styles of radicals, components, and strokes together depict the style of a glyph. Therefore, even a single character can contain different styles distributed over spatial locations. In this paper, we propose a new font generation approach by learning 1) the fine-grained local styles from references, and 2) the spatial correspondence between the content and reference glyphs. Therefore, each spatial location in the content glyph can be assigned with the right fine-grained style. To this end, we adopt cross-attention over the representation of the content glyphs as the queries and the representations of the reference glyphs as the keys and values. Instead of explicitly disentangling global or component-wise modeling, the cross-attention mechanism can attend to the right local styles in the reference glyphs and aggregate the reference styles into a fine-grained style representation for the given content glyphs. The experiments show that the proposed method outperforms the state-of-the-art methods in FFG. In particular, the user studies also demonstrate the style consistency of our approach significantly outperforms previous methods.

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

↑