Paint-Anything:用于图像生成和编辑的统一任意颜色控制

·

研究论文 · 2026/09/21

专业设计需要任意颜色控制:能够为图像生成和编辑指定对象的目标颜色为任意24位十六进制值。先前的工作探索了颜色生成、编辑和着色,但通常依赖专用的颜色表示或专门的推理过程。大型语言模型的进展提供了一个更简单的起点:即使是紧凑模型也能将十六进制值与颜色语义关联起来。我们提出了Paint-Anything,它通过对象级颜色监督学习一个共享的十六进制提示接口用于生成和编辑。我们开发了一个数据管道,通过对象定位、感知颜色标注和编辑对合成,从真实图像构建Paint-500K。由于阴影使真实图像标签仅近似颜色,我们用纯色锚点补充这种监督,其像素与配对的十六进制值完全匹配。这些锚点仅在高噪声时间步使用,将低噪声训练留给自然图像。我们进一步引入了Any Color Benchmark (ACBench),包括ACBench-T2I和ACBench-Edit,以衡量两个任务中对象级十六进制颜色保真度。在FLUX.2-4B上,Paint-Anything相对于基础模型将ACBench-T2I和ACBench-Edit分数分别提高了85.3%和28.3%,消融实验支持了训练配方。在比较方法中,它还实现了最高的平均CompColor分数。

该研究解决了图像生成和编辑中精确任意颜色控制的挑战,提出了一个统一且高效的解决方案,并在基准测试中显著优于基线模型,对专业设计应用具有重要价值。

Professional design requires any-color control: the ability to specify an object's target color with any 24-bit hex value for image generation and editing. Prior work has explored color generation, editing, and colorization, but often relies on dedicated color representations or specialized inference procedures. Advances in large language models offer a simpler starting point: even compact models can associate hex values with color semantics. We present Paint-Anything, which learns a shared hex-prompt interface for generation and editing through object-level color supervision. We develop a data pipeline that constructs Paint-500K from real images through object grounding, perceptual color labeling, and editing-pair synthesis. Since shadows make real-image labels only approximate colors, we complement this supervision with pure-color anchors whose pixels exactly match their paired hex values. These anchors are used only at high-noise timesteps, leaving low-noise training to natural images. We further introduce Any Color Benchmark (ACBench), comprising ACBench-T2I and ACBench-Edit, to measure object-level hex color fidelity across both tasks. On FLUX.2-4B, Paint-Anything improves ACBench-T2I and ACBench-Edit scores by 85.3% and 28.3%, respectively, relative to the base model, with ablations supporting the training recipe. It also achieves the highest average CompColor score among the compared methods.

阅读原文

参与讨论