arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.07220cs.CV
收藏

基于语义先验知识的上下文感知图像修补

Context-Aware Image Inpainting with Learned Semantic Priors

Shanghai Jiao Tong University(上海交通大学);Tencent(腾讯)

Wendong Zhang, Junwei Zhu, Ying Tai, Yunbo Wang, Wenqing Chu, Bingbing Ni, Chengjie Wang, Xiaokang Yang

摘要:

图像修补的最新进展已经显示出在相当简单的背景上生成可信的视觉细节的令人印象深刻的结果。然而,对于复杂的场景,它仍然是具有挑战性的,以恢复合理的内容,因为在丢失的区域内的上下文信息往往是模糊的。为了解决这个问题,我们引入了借口任务,语义上有意义的估计缺失的内容。特别是,我们进行知识蒸馏的借口模型和适应的特点,图像修补。学习到的语义先验知识在高级托词任务和低级图像修补之间应该是部分不变的,这不仅有助于理解全局上下文,而且为局部纹理的恢复提供了结构指导。基于语义先验知识,我们进一步提出了一种上下文感知的图像修补模型,该模型在统一的图像生成器中自适应地集成了全局语义和局部特征。语义学习器和图像生成器以端到端的方式进行训练。我们将模型命名为SPL,以突出其学习和利用语义先验的能力。它在Places2,CelebA和Paris StreetView数据集上达到了最先进的水平。

英文摘要:

Recent advances in image inpainting have shown impressive results for generating plausible visual details on rather simple backgrounds. However, for complex scenes, it is still challenging to restore reasonable contents as the contextual information within the missing regions tends to be ambiguous. To tackle this problem, we introduce pretext tasks that are semantically meaningful to estimating the missing contents. In particular, we perform knowledge distillation on pretext models and adapt the features to image inpainting. The learned semantic priors ought to be partially invariant between the high-level pretext task and low-level image inpainting, which not only help to understand the global context but also provide structural guidance for the restoration of local textures. Based on the semantic priors, we further propose a context-aware image inpainting model, which adaptively integrates global semantics and local features in a unified image generator. The semantic learner and the image generator are trained in an end-to-end manner. We name the model SPL to highlight its ability to learn and leverage semantic priors. It achieves the state of the art on Places2, CelebA, and Paris StreetView datasets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑