arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.14701cs.CVcs.AI
收藏

DreamText: 高保真场景文本合成

DreamText: High Fidelity Scene Text Synthesis

Fudan University(复旦大学);Shanghai Innovation Institute(上海创新研究院);Zhejiang University of Technology(浙江工业大学)

Yibin Wang, Weizhong Zhang, Honghui Xu, Cheng Jin

AI总结:

针对现有场景文本合成方法字符级引导不足、字体适应性差导致的字符失真等问题,提出DreamText方法,通过重构扩散训练、启发式交替优化及联合训练文本编码器与生成器,实现高保真场景文本合成,性能优于现有最优方法。

摘要:

场景文本合成指将指定文本渲染到任意图像上的任务。现有方法通常以端到端方式构建该任务,但训练过程中缺乏有效的字符级引导。此外,它们的文本编码器基于单一字体类型预训练,难以适应实际应用中遇到的多样字体风格。因此,这些方法存在字符失真、重复和缺失的问题,在多风格场景下尤为突出。为此,本文提出用于高保真场景文本合成的DreamText方法。我们的核心思路是重构扩散训练过程,引入针对该任务的更精细化引导,以暴露并修正模型在字符层面的注意力,强化其对文本区域的学习。这一改造带来了包含离散与连续变量的混合优化挑战。为有效应对该挑战,我们采用启发式交替优化策略。同时,我们联合训练文本编码器与生成器,以全面学习并利用训练数据集中存在的多样字体。这种联合训练被无缝整合到交替优化过程中,在字符嵌入学习与字符注意力重估计之间形成协同关系。具体而言,在每一步中,我们首先将来自交叉注意力图的潜在字符生成位置信息编码为潜在字符掩码。随后利用这些掩码更新当前步骤中特定字符的表示,进而使生成器能够在后续步骤中修正该字符的注意力。定性与定量结果均表明,我们的方法优于现有最优水平。

英文摘要:

Scene text synthesis involves rendering specified texts onto arbitrary images. Current methods typically formulate this task in an end-to-end manner but lack effective character-level guidance during training. Besides, their text encoders, pre-trained on a single font type, struggle to adapt to the diverse font styles encountered in practical applications. Consequently, these methods suffer from character distortion, repetition, and absence, particularly in polystylistic scenarios. To this end, this paper proposes DreamText for high-fidelity scene text synthesis. Our key idea is to reconstruct the diffusion training process, introducing more refined guidance tailored to this task, to expose and rectify the model's attention at the character level and strengthen its learning of text regions. This transformation poses a hybrid optimization challenge, involving both discrete and continuous variables. To effectively tackle this challenge, we employ a heuristic alternate optimization strategy. Meanwhile, we jointly train the text encoder and generator to comprehensively learn and utilize the diverse font present in the training dataset. This joint training is seamlessly integrated into the alternate optimization process, fostering a synergistic relationship between learning character embedding and re-estimating character attention. Specifically, in each step, we first encode potential character-generated position information from cross-attention maps into latent character masks. These masks are then utilized to update the representation of specific characters in the current step, which, in turn, enables the generator to correct the character's attention in the subsequent steps. Both qualitative and quantitative results demonstrate the superiority of our method to the state of the art.

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

↑