arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.12232cs.CV
收藏

Brush Your Text:通过扩散模型在图像上合成任意场景文本

Brush Your Text: Synthesize Any Scene Text on Images via Diffusion Model

Shanghai AI Laboratory(上海人工智能实验室)

Lingjun Zhang, Xinyuan Chen, Yaohui Wang, Yue Lu, Yu Qiao

AI总结:

针对扩散模型难以准确生成多语言场景文本的问题,提出免训练框架Diff-Text,以草图为先验、结合局部注意力约束与对比图像级提示,提升文本生成准确率与融合自然度。

摘要:

近年来,基于扩散的图像生成方法凭借其卓越的文本生成图像能力广受认可,但在准确生成多语言场景文本图像方面仍面临挑战。为解决这一问题,我们提出了Diff-Text,这是一个适用于任意语言的免训练场景文本生成框架。给定任意语言的文本以及场景的文本描述,我们的模型能够输出具有照片级真实感的图像。该模型利用渲染的草图图像作为先验,从而激发预训练Stable Diffusion(稳定扩散模型)潜在的多语言生成能力。基于交叉注意力图对生成图像中物体布局影响的观察,我们在交叉注意力层中引入了局部注意力约束,以解决场景文本定位不合理的问题。此外,我们引入了对比图像级提示,以进一步优化文本区域的位置,实现更精准的场景文本生成。实验表明,我们的方法在文本识别准确率和前景-背景融合的自然度方面均优于现有方法。

英文摘要:

Recently, diffusion-based image generation methods are credited for their remarkable text-to-image generation capabilities, while still facing challenges in accurately generating multilingual scene text images. To tackle this problem, we propose Diff-Text, which is a training-free scene text generation framework for any language. Our model outputs a photo-realistic image given a text of any language along with a textual description of a scene. The model leverages rendered sketch images as priors, thus arousing the potential multilingual-generation ability of the pre-trained Stable Diffusion. Based on the observation from the influence of the cross-attention map on object placement in generated images, we propose a localized attention constraint into the cross-attention layer to address the unreasonable positioning problem of scene text. Additionally, we introduce contrastive image-level prompts to further refine the position of the textual region and achieve more accurate scene text generation. Experiments demonstrate that our method outperforms the existing method in both the accuracy of text recognition and the naturalness of foreground-background blending.

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

↑