XMP-Font:用于Few-Shot字体生成的自监督跨模态预训练
XMP-Font: Self-Supervised Cross-Modality Pre-training for Few-Shot Font Generation
摘要:
对于字形丰富的脚本,生成新的字体库是一项非常劳动密集型和耗时的工作。因此,需要生成Few-Shot字体,因为它只需要少量的字体引用,而无需在测试期间进行微调。现有的方法遵循的风格内容解开范式,并期望通过结合的参考字形和源的内容表示的风格代码来产生新的字体。然而,这些Few-Shot字体生成方法要么无法捕获与内容无关的样式表示,要么采用本地化的组件式样式表示,这不足以建模许多涉及超组件特征的中文字体样式,例如组件间间距和“连接笔划”。为了解决这些缺点,并使风格表示更可靠,我们提出了一个自我监督的跨模态预训练策略和跨模态变换器为基础的编码器,共同条件下的图像和相应的笔画标签。跨模态编码器以自我监督的方式进行预训练,以允许有效捕获跨模态和模态内相关性,这有助于所有尺度(笔划级、组件级和字符级)的内容风格解纠缠和建模风格表示。预训练的编码器然后被应用于下游字体生成任务而无需微调。我们的方法与国家的最先进的方法的实验比较表明,我们的方法成功地转移所有规模的风格。此外,它只需要一个参考模板,并且在Few-Shot字体生成任务中实现了最低的坏情况率,比第二好的低28
英文摘要:
Generating a new font library is a very labor-intensive and time-consuming job for glyph-rich scripts. Few-shot font generation is thus required, as it requires only a few glyph references without fine-tuning during test. Existing methods follow the style-content disentanglement paradigm and expect novel fonts to be produced by combining the style codes of the reference glyphs and the content representations of the source. However, these few-shot font generation methods either fail to capture content-independent style representations, or employ localized component-wise style representations, which is insufficient to model many Chinese font styles that involve hyper-component features such as inter-component spacing and "connected-stroke". To resolve these drawbacks and make the style representations more reliable, we propose a self-supervised cross-modality pre-training strategy and a cross-modality transformer-based encoder that is conditioned jointly on the glyph image and the corresponding stroke labels. The cross-modality encoder is pre-trained in a self-supervised manner to allow effective capture of cross- and intra-modality correlations, which facilitates the content-style disentanglement and modeling style representations of all scales (stroke-level, component-level and character-level). The pre-trained encoder is then applied to the downstream font generation task without fine-tuning. Experimental comparisons of our method with state-of-the-art methods demonstrate our method successfully transfers styles of all scales. In addition, it only requires one reference glyph and achieves the lowest rate of bad cases in the few-shot font generation task 28% lower than the second best
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。