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

基于双侧注意和金字塔填充块的一步修复

One-Stage Inpainting with Bilateral Attention and Pyramid Filling Block

Hunan University(湖南大学)

Hongyu Liu, Bin Jiang, Wei Huang, Chao Yang

摘要:

最近基于深度学习的图像修补方法利用上下文信息和两阶段架构,表现出显着的性能。然而,两阶段结构耗时长,上下文信息缺乏高层语义,忽略了孔洞特征块的语义相关性和距离信息,导致最终结果纹理模糊,结构失真。受这些观察结果的启发,我们提出了一种新的基于深度生成模型的方法,该方法使用不同的目标对共享网络进行两次训练,并在测试阶段使用单个网络,以便我们可以有效地节省推理时间。具体而言,两个训练步骤的目标分别是结构重建和纹理生成。在第二次训练中,我们首先提出了一个金字塔填充块(PF块),利用空洞区域已经填充的高级特征来指导低级特征的填充过程,缺失的内容可以以金字塔的方式从深到浅填充。然后,受经典双边滤波器[30]的启发,我们提出了双边注意层(BA层)来优化填充的特征图,它通过计算周围特征块的加权和来合成每个位置的特征块,这些权重通过考虑特征块之间的距离和值关系来推导,从而使视觉上合理的修复结果。最后,在多个公开数据集上的实验表明了该方法的优越性能。

英文摘要:

Recent deep learning based image inpainting methods which utilize contextual information and two-stage architecture have exhibited remarkable performance. However, the two-stage architecture is time-consuming, the contextual information lack high-level semantics and ignores both the semantic relevance and distance information of hole's feature patches, these limitations result in blurry textures and distorted structures of final result. Motivated by these observations, we propose a new deep generative model-based approach, which trains a shared network twice with different targets and utilizes a single network during the testing phase, so that we can effectively save inference time. Specifically, the targets of two training steps are structure reconstruction and texture generation respectively. During the second training, we first propose a Pyramid Filling Block (PF-block) to utilize the high-level features that the hole regions has been filled to guide the filling process of low-level features progressively, the missing content can be filled from deep to shallow in a pyramid fashion. Then, inspired by the classical bilateral filter [30], we propose the Bilateral Attention layer (BA-layer) to optimize filled feature map, which synthesizes feature patches at each position by computing weighted sums of the surrounding feature patches, these weights are derived by considering both distance and value relationships between feature patches, thus making the visually plausible inpainting results. Finally, experiments on multiple publicly available datasets show the superior performance of our approach.

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

↑