Context-Aware Mutual Learning for Blind Image Inpainting and Beyond
Haoru Zhao, Yufeng Wang, Zhaorui Gu, Bing Zheng, Haiyong Zheng
Abstract
Blind image inpainting, aiming to recover contaminated images in the case of unknown masks, is a challenging task. Motivated by the perspective of human vision and knowledge, blind image inpainting can be decomposed into two stages: mask estimation and image inpainting based on the estimated mask. The two-stage idea exhibits evident advantages in enhancing inpainting quality and augmenting the generalization capability of unknown real-world contamination by explicitly employing the estimated mask for image inpainting compared to one-stage scheme. This two-stage idea has also been intuitively implemented. However, existing two-stage methods excessively emphasize the unilateral relationship of mask estimation to image inpainting, and may overlook the mutual relations between them. Specifically, mask estimation can provide more contextual semantics for image inpainting to strengthen the understanding of semantics, and image inpainting can offer more contextual details (e.g., textures and edges) for mask estimation to improve the learning of details. In this work, we propose a novel Context-Aware Mutual Learning (CAML) framework for blind image inpainting that joints mask estimation and image inpainting to mutually exploit contextual information. In the CAML framework, we design the Inpainting-Guided Context-Mutual (IGCM) learner to acquire the complementary contextual details from image inpainting for assisting mask estimation, and the Estimation-Guided Context-Mutual (EGCM) learner to strengthen the understanding of contextual semantics from mask estimation for assisting image inpainting. Ablation studies validate the efficacy of our CAML. Extensive experiments show that our CAML achieves state-of-the-art performance on both blind image inpainting and additional vision tasks, i.e., snow removal, shadow removal, and watermark removal, indicating its superiority.
Create a lesson
Metadata
- Journal
- Expert Systems with Applications 268 (2025), Article 126224
- Comments
- Published in Expert Systems with Applications 268 (2025), Article 126224
Related papers
Recalling the Past to Answer the Present: Context-Aware Multi-Evidence Reasoning for Streaming Video Question Answering
Shared title terminologycs.CVCui Yakun, Tiantian Geng, Huixiang Kong et al.
DocDUR-Net: Degradation-Aware Unified Document Image Restoration
Shared title terminologycs.CVHaowei Xu, Peirong Zhang, Xuhan Zheng et al.
TACC: Target-Aware Carrier Compression for Dense-Context Novel View Synthesis
Shared title terminologycs.CVYiming Fan, Yijia Guo, Zewen Guo et al.
FSANet: Frequency-Spatial Aware Network for Image Segmentation
Shared title terminologycs.CVRuibo Wang, Ziyi Shen, Huaming Wu et al.
DNF-SR: Dual-Input and Negative-Aware Feature Fine-Tuning for Real-World Image Super-Resolution
Shared title terminologycs.CVShuhao Han, Wenjie Liao, Hayden Vance et al.
Beyond Natural Images: Rethinking AI-Generated Image Detection in Documents
Shared title terminologycs.CVZhangjie Fu, Jiazhen Yan, Yuanwen Chen et al.