Diff-Font: Diffusion Model for Robust One-Shot Font Generation

Haibin He, Xinyuan Chen, Chaoyue Wang, Juhua Liu, Bo Du +2 more
12/12/2022
cs.CV
diffusion-flow

Official code: Hxyz-123/Font-diff (142 stars, Python, last commit 2023-09-04).

Abstract

Font generation is a difficult and time-consuming task, especially in those languages using ideograms that have complicated structures with a large number of characters, such as Chinese. To solve this problem, few-shot font generation and even one-shot font generation have attracted a lot of attention.

Show full abstract

However, most existing font generation methods may still suffer from (i) large cross-font gap challenge; (ii) subtle cross-font variation problem; and (iii) incorrect generation of complicated characters. In this paper, we propose a novel one-shot font generation method based on a diffusion model, named Diff-Font, which can be stably trained on large datasets. The proposed model aims to generate the entire font library by giving only one sample as the reference. Specifically, a large stroke-wise dataset is constructed, and a stroke-wise diffusion model is proposed to preserve the structure and the completion of each generated character. To our best knowledge, the proposed Diff-Font is the first work that developed diffusion models to handle the font generation task. The well-trained Diff-Font is not only robust to font gap and font variation, but also achieved promising performance on difficult character generation. Compared to previous font generation methods, our model reaches state-of-the-art performance both qualitatively and quantitatively.

View on arXivView PDF

Code Implementations(1)

Hxyz-123/Font-diffOfficial100%
14224PythonMar 18, 20233 years ago

Similar Papers

Cite this paper

@article{he2022difffont,
  title  = {Diff-Font: Diffusion Model for Robust One-Shot Font Generation},
  author = {Haibin He and Xinyuan Chen and Chaoyue Wang and Juhua Liu and Bo Du and Dacheng Tao and Yu Qiao},
  year   = {2022},
  eprint = {2212.05895},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.05895}
}

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/2212.05895.svg)](https://codeofpaper.com/paper/2212.05895)

Discussion