GlyphAtlas:为场景文本合成解耦笔画细节与布局
研究论文 · 2026/11/17
场景文本合成需要笔画准确的字符按指定布局渲染,并与周围场景视觉连贯。现有方法通常预渲染目标文本形成字形图像,同时指定布局和字形结构,但这将每个字形的分辨率与其目标区域绑定,限制了对小、密集或结构复杂文本的细粒度笔画引导。为此,我们提出GlyphAtlas,一个场景文本合成框架,保留字形图像作为空间锚点,并通过专用字形图集提供细粒度笔画参考。图集在独立单元格中渲染和编码每个字符或词,将参考分辨率与目标区域大小解耦。我们进一步引入图集锚定注意力,让每个文本区域仅从其对应的图集单元格检索笔画细节,以细化字形图像提供的粗粒度字形结构。这种由粗到细的条件简化了笔画渲染,同时保持显式布局对应。我们用掩码加权流匹配目标和时间步加权文本感知损失优化GlyphAtlas,以提高书写准确性和背景一致性。图集单元格的随机分辨率增强支持推理时可调图集预算。大量实验表明,GlyphAtlas实现了小、密集和结构复杂文本的笔画准确合成,零样本迁移到任务特定训练中未见语言,并在多文本区域场景中领先。项目页面:https://fr0zencrane.github.io/project-glyphatlas/
该论文提出了一种新颖的场景文本合成方法,通过解耦笔画细节与布局,显著提升了小、密集和复杂文本的合成质量,并具备零样本跨语言迁移能力,对文本图像生成领域有重要参考价值。
Scene text synthesis requires stroke-accurate characters rendered in a specified layout, as well as visual coherence with the surrounding scene. To achieve this, existing methods commonly pre-render the target text at its intended locations to form a glyph image that jointly specifies layout and glyph structure. However, this representation ties the resolution of each glyph to its target region, limiting fine-grained stroke guidance for small, densely packed, or structurally complex text. To tackle this, we propose GlyphAtlas, a scene text synthesis framework that retains the glyph image as a spatial anchor and supplies fine-grained stroke references through a dedicated glyph atlas. The atlas renders and encodes each character or word in a separate cell, decoupling reference resolution from target-region size. We further introduce atlas-anchored attention, which lets each text region retrieve stroke detail only from its corresponding atlas cells to refine the coarse glyph structure provided by the glyph image. This coarse-to-fine conditioning simplifies stroke rendering while preserving explicit layout correspondence. We optimize GlyphAtlas with a mask-weighted flow matching objective and a timestep-weighted text perceptual loss for writing accuracy and background consistency. Random resolution augmentation of atlas cells supports adjustable atlas budgets at inference. Extensive experiments demonstrate that GlyphAtlas achieves stroke-accurate synthesis of small, dense, and structurally complex text, zero-shot transfer to languages unseen during task-specific training, and leading performance in scenes with many text regions. project page: https://fr0zencrane.github.io/project-glyphatlas/