Contextual aggregation and frequency filtering-enhanced long-range modeling for high-fidelity inpainting
摘要
Modeling long-range correlations and reconstructing fine details are essential for high-fidelity image inpainting. However, existing methods often face challenges of high computational overhead and over-smoothed outputs. This paper presents GCF-former, a novel framework that enhances inpainting performance via dynamic frequency-domain filtering. We introduce the Fused Adaptive Frequency Mixer (FAFM), which efficiently captures long-range dependencies and refines semantic features in Fourier space, reducing computational complexity to log-linear. We further propose a Multi-Scale Gated Convolution (MSGC), deployed in shallow layers to aggregate multi-scale features and enhance intricate detail recovery without incurring excessive parameter overhead. We evaluate GCF-former on the CelebA-HQ, Places2, and Dunhuang Challenge datasets. Results demonstrate that our framework outperforms other advanced methods in inpainting quality with lower computational cost.