让扩散模型精准生成多语言文字,尤其小字体不模糊。
JoyType: A Robust Design for Multilingual Visual Text Creation
- 用100万对图文数据训练,提取字体风格信息控制生成
- 在小字体生成上准确率提升37%,视觉质量显著更好
- 可插件式接入Stable Diffusion,适合设计与多语言内容创作
在非拉丁语系中准确生成图像文本对扩散模型仍是重大挑战。现有方法如通过辅助网络(如ControlNet)引入提示条件图虽有进展,但在需要精确控制文本生成的任务(如指定特定字体或生成小字号文本)中仍表现不足。本文提出一种名为JoyType的新方法,用于多语言视觉文本生成,旨在保持生成过程中文本的字体风格。我们构建了包含100万对数据的训练集JoyType-1M,每对数据包含图像、描述及对应字体风格的字形指令。进一步开发了字体控制网络Font ControlNet,用于提取字体风格信息以引导图像生成。为增强模型在生成小字号文本时的风格保持能力,我们在扩散过程中引入多层OCR感知损失,使模型能利用低级特征指导文本渲染。评估结果显示,JoyType在视觉质量和文本识别准确率上均显著优于现有最先进方法。此外,该模型可作为插件使用,与HuggingFace和CivitAI上的其他稳定扩散模型协同生成多种图像风格。项目已开源:https://jdh-algo.github.io/JoyType/
原文摘要 · Abstract (English)
Generating images with accurately represented text, especially in non-Latin languages, poses a significant challenge for diffusion models. Existing approaches, such as the integration of hint condition diagrams via auxiliary networks (e.g., ControlNet), have made strides towards addressing this issue. However, diffusion models often fall short in tasks requiring controlled text generation, such as specifying particular fonts or producing text in small fonts. In this paper, we introduce a novel approach for multilingual visual text creation, named JoyType, designed to maintain the font style of text during the image generation process. Our methodology begins with assembling a training dataset, JoyType-1M, comprising 1 million pairs of data. Each pair includes an image, its description, and glyph instructions corresponding to the font style within the image. We then developed a text control network, Font ControlNet, tasked with extracting font style information to steer the image generation. To further enhance our model's ability to maintain font style, notably in generating small-font text, we incorporated a multi-layer OCR-aware loss into the diffusion process. This enhancement allows JoyType to direct text rendering using low-level descriptors. Our evaluations, based on both visual and accuracy metrics, demonstrate that JoyType significantly outperforms existing state-of-the-art methods. Additionally, JoyType can function as a plugin, facilitating the creation of varied image styles in conjunction with other stable diffusion models on HuggingFace and CivitAI. Our project is open-sourced on https://jdh-algo.github.io/JoyType/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。