FontDiffuser: One-Shot Font Generation via Denoising Diffusion with Multi-Scale Content Aggregation and Style Contrastive Learning

Zhenhua Yang, Dezhi Peng, Yuxin Kong, Yuyi Zhang, Cong Yao +1 more
12/19/2023
123 citations
cs.CVcs.AI
diffusion-flowcontrastive-ssl

Official code: yeungchenwa/FontDiffuser (579 stars, Python, last commit 2024-03-14).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

[AAAI2024] FontDiffuser: One-Shot Font Generation via Denoising Diffusion with Multi-Scale Content Aggregation and Style Contrastive Learning

57959Python, ShellDec 9, 20232 years ago
deep-learningdiffusersdiffusionfont-generationimage-generation

Similar Papers

Cite this paper

@article{yang2023fontdiffuser,
  title  = {FontDiffuser: One-Shot Font Generation via Denoising Diffusion with Multi-Scale Content Aggregation and Style Contrastive Learning},
  author = {Zhenhua Yang and Dezhi Peng and Yuxin Kong and Yuyi Zhang and Cong Yao and Lianwen Jin},
  year   = {2023},
  eprint = {2312.12142},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.12142v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.12142.svg)](https://codeofpaper.com/paper/2312.12142)

Discussion