FontDiffuser:基于多尺度内容聚合与风格对比学习的去噪扩散单样本字体生成方法
FontDiffuser: One-Shot Font Generation via Denoising Diffusion with Multi-Scale Content Aggregation and Style Contrastive Learning
AI总结:
针对现有字体生成方法在复杂字符和大幅风格变化下的不足,提出基于扩散模型的FontDiffuser,通过多尺度内容聚合模块与风格对比精炼模块提升效果,达到当前最优性能且代码已开源。
摘要:
自动字体生成是一项模仿任务,旨在创建既能保留源图像内容、又能模仿参考图像风格的字体库。现有字体生成方法虽已取得不错的效果,但在处理复杂字符和大幅风格变化时仍存在不足。为解决这些问题,我们提出FontDiffuser,这是一种基于扩散模型的图到图单样本字体生成方法,创新性地将字体模仿任务建模为噪声到去噪的范式。该方法中,我们引入多尺度内容聚合(Multi-scale Content Aggregation,MCA)模块,可有效融合不同尺度的全局与局部内容线索,增强对复杂字符精细笔画的保留能力。此外,为更好应对风格迁移中的大幅变化,我们提出风格对比精炼(Style Contrastive Refinement,SCR)模块,这是一种新型风格表示学习结构。它利用风格提取器从图像中解耦风格,再通过精心设计的风格对比损失对扩散模型进行监督。大量实验表明,FontDiffuser在生成多样字符和风格方面达到了当前最优性能,与以往方法相比,在复杂字符和大幅风格变化场景下表现始终更优。代码已开源至https://github.com/yeungchenwa/FontDiffuser。
英文摘要:
Automatic font generation is an imitation task, which aims to create a font library that mimics the style of reference images while preserving the content from source images. Although existing font generation methods have achieved satisfactory performance, they still struggle with complex characters and large style variations. To address these issues, we propose FontDiffuser, a diffusion-based image-to-image one-shot font generation method, which innovatively models the font imitation task as a noise-to-denoise paradigm. In our method, we introduce a Multi-scale Content Aggregation (MCA) block, which effectively combines global and local content cues across different scales, leading to enhanced preservation of intricate strokes of complex characters. Moreover, to better manage the large variations in style transfer, we propose a Style Contrastive Refinement (SCR) module, which is a novel structure for style representation learning. It utilizes a style extractor to disentangle styles from images, subsequently supervising the diffusion model via a meticulously designed style contrastive loss. Extensive experiments demonstrate FontDiffuser's state-of-the-art performance in generating diverse characters and styles. It consistently excels on complex characters and large style changes compared to previous methods. The code is available at https://github.com/yeungchenwa/FontDiffuser.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。