NumColor: 文本到图像生成中的精确数值颜色控制
NumColor: Precise Numeric Color Control in Text-to-Image Generation
AI总结:
NumColor通过颜色标记聚合器和颜色书实现多扩散架构中的精确数值颜色控制,提升颜色准确性和和谐度。
摘要:
文本到图像扩散模型在生成自然语言描述的图像方面表现出色,但无法解释如十六进制代码(#FF5733)和RGB值(rgb(255,87,51))等数值颜色。这一限制源于子词分词,将颜色代码分割成语义不明确的标记,文本编码器无法映射到连贯的颜色表示。我们提出了NumColor,它在多个扩散架构中实现精确的数值颜色控制。NumColor包含两个组件:一个颜色标记聚合器,无论分词如何都能检测颜色规范,以及一个包含6707个可学习嵌入的ColorBook,将颜色映射到感知均匀的CIE Lab空间中的文本编码器嵌入空间。我们引入了两个辅助损失,方向对齐和插值一致性,以强制Lab空间和嵌入空间之间的几何对应,从而实现平滑的颜色插值。为了训练ColorBook,我们构建了NumColor-Data,一个包含50万张渲染图像的合成数据集,具有明确的颜色到像素对应关系,消除了摄影数据集固有的标注模糊性。尽管仅在FLUX上训练,NumColor能够零样本转移到SD3、SD3.5、PixArt-α和PixArt-Σ,无需模型特定的适应。NumColor在五个模型上将数值颜色准确性提高了4-9倍,同时在GenColorBench基准上将颜色和谐度分数提高了10-30倍。
英文摘要:
Text-to-image diffusion models excel at generating images from natural language descriptions, yet fail to interpret numerical colors such as hex codes (#FF5733) and RGB values (rgb(255,87,51)). This limitation stems from subword tokenization, which fragments color codes into semantically meaningless tokens that text encoders cannot map to coherent color representations. We present NumColor, that enables precise numerical color control across multiple diffusion architectures. NumColor comprises two components: a Color Token Aggregator that detects color specifications regardless of tokenization, and a ColorBook containing 6,707 learnable embeddings that map colors to embedding space of text encoder in perceptually uniform CIE Lab space. We introduce two auxiliary losses, directional alignment and interpolation consistency, to enforce geometric correspondence between Lab and embedding spaces, enabling smooth color interpolation. To train the ColorBook, we construct NumColor-Data, a synthetic dataset of 500K rendered images with unambiguous color-to-pixel correspondence, eliminating the annotation ambiguity inherent in photographic datasets. Although trained solely on FLUX, NumColor transfers zero-shot to SD3, SD3.5, PixArt-α, and PixArt-Σ without model-specific adaptation. NumColor improves numerical color accuracy by 4-9x across five models, while simultaneously improving color harmony scores by 10-30x on GenColorBench benchmark.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。