arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.04004cs.CV
收藏

用于手写文本生成的单样本扩散模仿器

One-Shot Diffusion Mimicker for Handwritten Text Generation

South China University of Technology(华南理工大学);National University of Singapore(新加坡国立大学);Skywork AI(天穹智科);Pazhou Laboratory(琶洲实验室)

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

AI总结:

针对单样本手写文本生成的风格提取难题,提出带风格增强模块的One-DM扩散模型,融合单样本高频风格特征与文本内容引导生成,多语言效果超使用十余样本的现有方法。

摘要:

现有的手写文本生成方法通常需要十余个手写样本作为风格参考。但在实际应用中,用户更倾向于仅需单个参考样本即可运行的手写生成模型,因其兼具便捷性与高效性。这种被称为“单样本生成”的方式大幅简化了生成流程,但也带来了严峻挑战:难以从单个样本中准确捕捉书写者的风格,尤其是在前景稀疏、背景存在无关噪声的情况下,提取字符边缘的精细细节难度更高。为解决这一问题,我们提出了One-shot Diffusion Mimicker(单样本扩散模仿器,简称One-DM),仅需单个参考样本就能生成可模仿任意书法风格的手写文本。受单个样本的高频信息通常包含独特风格模式(如字符倾斜度、字母连笔)这一事实启发,我们设计了一种全新的风格增强模块,通过融合单个样本的高频分量来优化风格提取效果。随后我们将风格特征与文本内容融合,作为合并条件引导扩散模型生成高质量的手写文本图像。大量实验表明,我们的方法仅需单个样本参考,就能成功生成多语言手写文本,性能甚至优于使用十余个样本的现有方法。我们的源代码可在https://github.com/dailenson/One-DM获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑