用检索参考图解决图像融合中的光照不匹配问题。
Retrieval Augmented Image Harmonization
- 通过检索光照一致的相似物体参考图,降低融合的不确定性。
- 在无参考图和有参考图场景下均显著提升融合质量。
- 适合需要高质量图像合成的视觉创作与编辑场景。
将前景物体嵌入背景图像时,需考虑光照等摄影条件的影响,通常需进行图像调和以使前景在亮度、色彩等方面与背景协调。现有方法仍面临两大挑战:一是在背景中缺乏与前景内容相似的区域时,调和问题高度病态,结果不可靠;二是即使存在相似内容,调和过程也常受无关区域干扰,主要源于对图像内容理解不足和注意力不准确。为此,我们提出检索增强型图像调和框架(Raiha),通过检索包含相似物体且光照与背景一致的参考图像,减少问题病态性,并限制注意力范围以更好利用有用信息。具体地,设计了一种高效检索方法以找到匹配的参考图像;为训练Raiha框架有效利用参考信息,巧妙利用现有非参考调和数据集设计数据增强策略;同时引入图像内容先验以确保合理注意力分布。实验表明,该框架在无参考与检索增强设置下均显著提升调和性能。源代码与预训练模型将公开。
原文摘要 · Abstract (English)
When embedding objects (foreground) into images (background), considering the influence of photography conditions like illumination, it is usually necessary to perform image harmonization to make the foreground object coordinate with the background image in terms of brightness, color, and etc. Although existing image harmonization methods have made continuous efforts toward visually pleasing results, they are still plagued by two main issues. Firstly, the image harmonization becomes highly ill-posed when there are no contents similar to the foreground object in the background, making the harmonization results unreliable. Secondly, even when similar contents are available, the harmonization process is often interfered with by irrelevant areas, mainly attributed to an insufficient understanding of image contents and inaccurate attention. As a remedy, we present a retrieval-augmented image harmonization (Raiha) framework, which seeks proper reference images to reduce the ill-posedness and restricts the attention to better utilize the useful information. Specifically, an efficient retrieval method is designed to find reference images that contain similar objects as the foreground while the illumination is consistent with the background. For training the Raiha framework to effectively utilize the reference information, a data augmentation strategy is delicately designed by leveraging existing non-reference image harmonization datasets. Besides, the image content priors are introduced to ensure reasonable attention. With the presented Raiha framework, the image harmonization performance is greatly boosted under both non-reference and retrieval-augmented settings. The source code and pre-trained models will be publicly available.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。