arXiv:2504.06895cs.CV2025-04

解决手绘稿与参考图空间错位导致的上色失真问题

ColorizeDiffusion v2: Enhancing Reference-based Sketch Colorization Through Separating Utilities

  • 分离载体机制,动态优化颜色迁移过程
  • 引入区域掩码交叉注意力,减少错位带来的伪影
  • 适合动画制作中参考图与草图不齐的场景

基于参考图的手绘稿上色方法在动画生产中有重要应用前景。然而,现有方法多在语义和空间对齐良好的图像三元组(草图、参考图、真实图像)上训练,而真实场景中参考图与草图常存在显著错位。这种训练与推理阶段的数据分布差异导致过拟合,引发空间伪影并严重降低整体上色质量,限制了其通用性。为此,我们深入分析了‘载体’——即促进参考图信息向草图传递的潜在表示——的作用机制,并提出一种新型工作流,动态适配载体以优化不同上色环节。针对空间错位问题,设计带有空间掩码的分割交叉注意力机制,在扩散过程中实现区域特异性参考注入;为缓解草图语义忽略问题,引入专用背景与风格编码器,在潜在特征空间中传递细节丰富的参考信息,提升空间控制力与细节合成能力。此外,提出角色掩码融合与背景褪色作为预处理步骤,改善前景-背景融合效果与背景生成质量。大量定性和定量评估(含用户研究)表明,所提方法优于现有方法;消融实验进一步验证了各组件的有效性。

原文摘要 · Abstract (English)

Reference-based sketch colorization methods have garnered significant attention due to their potential applications in the animation production industry. However, most existing methods are trained with image triplets of sketch, reference, and ground truth that are semantically and spatially well-aligned, while real-world references and sketches often exhibit substantial misalignment. This mismatch in data distribution between training and inference leads to overfitting, consequently resulting in spatial artifacts and significant degradation in overall colorization quality, limiting potential applications of current methods for general purposes. To address this limitation, we conduct an in-depth analysis of the \textbf{carrier}, defined as the latent representation facilitating information transfer from reference to sketch. Based on this analysis, we propose a novel workflow that dynamically adapts the carrier to optimize distinct aspects of colorization. Specifically, for spatially misaligned artifacts, we introduce a split cross-attention mechanism with spatial masks, enabling region-specific reference injection within the diffusion process. To mitigate semantic neglect of sketches, we employ dedicated background and style encoders to transfer detailed reference information in the latent feature space, achieving enhanced spatial control and richer detail synthesis. Furthermore, we propose character-mask merging and background bleaching as preprocessing steps to improve foreground-background integration and background generation. Extensive qualitative and quantitative evaluations, including a user study, demonstrate the superior performance of our proposed method compared to existing approaches. An ablation study further validates the efficacy of each proposed component.

图像上色扩散模型姿态对齐动画生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。