Abstract:To address insufficient feature extraction and semantic information capture in the existing Dunhuang mural inpainting algorithms, this paper proposes a multi-scale feature extraction and adaptive fusion (MSFE-AF) model. First, we construct a parallel network comprising global and local layers: the global layer employs multi-scale parallel convolution and attention mechanisms for comprehensive feature extraction, while the local layer integrates receptive field attention convolution with residual dense networks for detailed refinement. Second, a spatial adaptive feature modulation module enhances feature fusion between encoder-decoder layers via skip connections, ensuring inpainting consistency. Finally, adversarial learning between the generator and discriminator optimizes mural inpainting. Experimental results demonstrate superior performance over the existing methods across irregular masks, simulated mildew patterns, and real damaged scenarios, with significant improvements in PSNR, SSIM, LPIPS, FID, and L2 metrics as well as visual quality assessments.