One-Shot Diffusion Mimicker for Handwritten Text Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dai, Gang, Zhang, Yifan, Ke, Quhui, Guo, Qiangya, Huang, Shuangping
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912021897805824
author Dai, Gang
Zhang, Yifan
Ke, Quhui
Guo, Qiangya
Huang, Shuangping
author_facet Dai, Gang
Zhang, Yifan
Ke, Quhui
Guo, Qiangya
Huang, Shuangping
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_04004
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle One-Shot Diffusion Mimicker for Handwritten Text Generation
Dai, Gang
Zhang, Yifan
Ke, Quhui
Guo, Qiangya
Huang, Shuangping
Computer Vision and Pattern Recognition
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.
title One-Shot Diffusion Mimicker for Handwritten Text Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2409.04004