CR-Fill: Generative Image Inpainting with Auxiliary Contextual Reconstruction
Yu Zeng, Zhe Lin, Huchuan Lu, Vishal M. Patel
Abstract
Recent deep generative inpainting methods use attention layers to allow the generator to explicitly borrow feature patches from the known region to complete a missing region. Due to the lack of supervision signals for the correspondence between missing regions and known regions, it may fail to find proper reference features, which often leads to artifacts in the results. Also, it computes pair-wise similarity across the entire feature map during inference bringing a significant computational overhead. To address this issue, we propose to teach such patch-borrowing behavior to an attention-free generator by joint training of an auxiliary contextual reconstruction task, which encourages the generated output to be plausible even when reconstructed by surrounding regions. The auxiliary branch can be seen as a learnable loss function, i.e. named as contextual reconstruction (CR) loss, where query-reference feature similarity and reference-based reconstructor are jointly optimized with the inpainting generator. The auxiliary branch ( i.e. CR loss) is required only during training, and only the inpainting generator is required during the inference. Experimental results demonstrate that the proposed inpainting model compares favourably against the state-of-the-art in terms of quantitative and visual performance. Code is available at https://github.com/zengxianyu/crfill.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers19
- Class-Aware Adversarial Transformers for Medical Image SegmentationChenyu You, Ruihan Zhao, Fenglin Liu, Siyuan Dong et al.NeurIPS 2022 · 137 citations
- Bridging Global Context Interactions for High-Fidelity Image CompletionChuanxia Zheng, Tat-Jen Cham, Jianfei Cai, Dinh Q. PhungCVPR 2022 · 114 citations
- CoordFill: Efficient High-Resolution Image Inpainting via Parameterized Coordinate QueryingWeihuang Liu, Xiaodong Cun, Chi-Man Pun, Menghan Xia et al.AAAI 2023 · 71 citations
- Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion ModelsSenmao Li, Joost van de Weijer, Taihang Hu, Fahad Shahbaz Khan et al.ICLR 2024 · 56 citations
- SketchEdit: Mask-Free Local Image Manipulation with Partial SketchesYu Zeng, Zhe Lin, Vishal M. PatelCVPR 2022 · 50 citations
Builds on4
- Free-Form Image Inpainting With Gated ConvolutionJiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen et al.ICCV 2019 · 1,990 citations
- Coherent Semantic Attention for Image InpaintingHongyu Liu, Bin Jiang, Yi Xiao, Chao YangICCV 2019 · 395 citations
- Contextual Residual Aggregation for Ultra High-Resolution Image InpaintingZili Yi, Qiang Tang, Shekoofeh Azizi, Daesik Jang et al.CVPR 2020
- Recurrent Feature Reasoning for Image InpaintingJingyuan Li, Ning Wang, Lefei Zhang, Bo Du et al.CVPR 2020
Related papers
- Text-Guided Neural Image InpaintingLisai Zhang, Qingcai Chen, Baotian Hu, Shuoran JiangACM MM 2020 · 53 citations
- JPGNet: Joint Predictive Filtering and Generative Network for Image InpaintingQing Guo, Xiaoguang Li, Felix Juefei-Xu, Hongkai Yu et al.ACM MM 2021 · 34 citations
- Image Inpainting via Conditional Texture and Structure Dual GenerationXiefan Guo, Hongyu Yang, Di HuangICCV 2021 · 283 citations
- Learning Contextual Transformer Network for Image InpaintingYe Deng, Siqi Hui, Sanping Zhou, Deyu Meng et al.ACM MM 2021 · 29 citations
- GCM-Net: Towards Effective Global Context Modeling for Image InpaintingHuan Zheng, Zhao Zhang, Yang Wang, Zheng Zhang et al.ACM MM 2021 · 17 citations
