Existing image inpainting methods typically fill holes by borrowing information from surrounding image regions. They often produce unsatisfactory results when the holes overlap with or touch foreground objects due to lack of information about the actual extent of foreground and background regions within the holes. These scenarios, however, are very important in practice, especially for applications such as distracting object removal. To address the problem, we propose a foreground-aware image inpainting system that explicitly disentangles structure inference and content completion. Specifically, our model learns to predict the foreground contour first, and then inpaints the missing region using the predicted contour as guidance. We show that by this disentanglement, the contour completion model predicts reasonable contours of objects, and further substantially improves the performance of image inpainting. Experiments show that our method significantly outperforms existing methods and achieves superior inpainting results on challenging cases with complex compositions.
翻译:现有图像映射方法通常通过借用周围图像区域的信息来填补空洞。 当洞与前方物体重叠或触摸前方物体时,由于缺少关于洞内前方和背景区域实际范围的信息,这些情景通常会产生不令人满意的结果。 然而,这些情景在实践中非常重要,特别是对于分散物体去除等应用而言。为了解决这个问题,我们建议了地表图像映射系统,明确分解结构推断和内容完成。具体地说,我们的模型学会先预测地表轮廓,然后用预测的轮廓作为指导对缺失区域进行油漆。我们通过这种不相干的情况,我们显示轮廓完成模型预测了物体的合理轮廓,并大大改善了图像油漆的性能。实验表明,我们的方法大大优于现有方法,在具有复杂构造的挑战性的案件上取得了优超标结果。