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

DA-Font:基于双注意力混合集成的少样本字体生成

DA-Font: Few-Shot Font Generation via Dual-Attention Hybrid Integration

School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院)

Weiran Chen, Guiqian Zhu, Ying Li, Yi Ji, Chunping Liu

AI总结:

DA-Font提出双注意力混合模块,通过组件注意力与关系注意力协同保持字形结构与风格纹理,并辅以角点一致性和弹性网格特征损失,在少样本字体生成中超越现有方法。

摘要:

少样本字体生成旨在利用有限数量的字形参考来创建新字体,可用于显著降低人工字体设计的劳动成本。然而,由于字体风格的多样性和复杂性,现有方法生成的结果往往存在明显缺陷,如笔画错误、伪影和模糊。为解决这些问题,我们提出DA-Font,一个集成了双注意力混合模块(DAHM)的新颖框架。具体而言,我们引入了两个协同工作的注意力模块:组件注意力模块利用内容图像中的组件信息来引导风格迁移过程,关系注意力模块通过将内容特征与原始和风格化的组件级表示进行交互,进一步细化空间关系。这两个模块协同工作以保持准确的字形结构和风格纹理。此外,我们还设计了角点一致性损失和弹性网格特征损失,以更好地改善几何对齐。大量实验表明,我们的DA-Font在多种字体风格和字符上优于最先进的方法,证明了其在增强结构完整性和局部保真度方面的有效性。源代码可在\href{https://github.com/wrchen2001/DA-Font}{\textit{https://github.com/wrchen2001/DA-Font}}找到。

英文摘要:

Few-shot font generation aims to create new fonts with a limited number of glyph references. It can be used to significantly reduce the labor cost of manual font design. However, due to the variety and complexity of font styles, the results generated by existing methods often suffer from visible defects, such as stroke errors, artifacts and blurriness. To address these issues, we propose DA-Font, a novel framework which integrates a Dual-Attention Hybrid Module (DAHM). Specifically, we introduce two synergistic attention blocks: the component attention block that leverages component information from content images to guide the style transfer process, and the relation attention block that further refines spatial relationships through interacting the content feature with both original and stylized component-wise representations. These two blocks collaborate to preserve accurate character shapes and stylistic textures. Moreover, we also design a corner consistency loss and an elastic mesh feature loss to better improve geometric alignment. Extensive experiments show that our DA-Font outperforms the state-of-the-art methods across diverse font styles and characters, demonstrating its effectiveness in enhancing structural integrity and local fidelity. The source code can be found at \href{https://github.com/wrchen2001/DA-Font}{\textit{https://github.com/wrchen2001/DA-Font}}.

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

↑