Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

One-Shot Diffusion Mimicker for Handwritten Text Generation

About

Existing handwritten text generation methods often require more than ten handwriting samples as style references. However, in practical applications, users tend to prefer a handwriting generation model that operates with just a single reference sample for its convenience and efficiency. This approach, known as "one-shot generation", significantly simplifies the process but poses a significant challenge due to the difficulty of accurately capturing a writer's style from a single sample, especially when extracting fine details from the characters' edges amidst sparse foreground and undesired background noise. To address this problem, we propose a One-shot Diffusion Mimicker (One-DM) to generate handwritten text that can mimic any calligraphic style with only one reference sample. Inspired by the fact that high-frequency information of the individual sample often contains distinct style patterns (e.g., character slant and letter joining), we develop a novel style-enhanced module to improve the style extraction by incorporating high-frequency components from a single sample. We then fuse the style features with the text content as a merged condition for guiding the diffusion model to produce high-quality handwritten text images. Extensive experiments demonstrate that our method can successfully generate handwriting scripts with just one sample reference in multiple languages, even outperforming previous methods using over ten samples. Our source code is available at https://github.com/dailenson/One-DM.

Gang Dai, Yifan Zhang, Quhui Ke, Qiangya Guo, Shuangping Huang• 2024

Related benchmarks

TaskDatasetResultRank
Handwriting generationIAM (test)
FID15.97
16
Handwritten Text GenerationIAM word-level
FID27.54
16
Line-level Text-to-Image SynthesisKaraoke Typewritten (test)
FID70.75
8
Styled Text GenerationKaraoke (Typewritten)
FID70.75
8
Line-level Text-to-Image SynthesisKaraoke Handwritten (test)
FID59.73
8
Styled Text GenerationKaraoke Calligraphy
FID59.73
8
Handwriting SynthesisIAM Lines
FID43.89
8
Handwritten Text GenerationIAM Lines
FID43.89
8
Handwriting SynthesisCVL line-level
FID60.45
8
Handwriting SynthesisRIMES line-level
FID121.2
8
Showing 10 of 19 rows

Other info

Follow for update