GLaMa: Joint Spatial and Frequency Loss for General Image Inpainting
Not on the map. Why?
Abstract (arXiv)
The purpose of image inpainting is to recover scratches and damaged areas using context information from remaining parts. In recent years, thanks to the resurgence of convolutional neural networks (CNNs), image inpainting task has made great breakthroughs. However, most of the work consider insufficient types of mask, and their performance will drop dramatically when encountering unseen masks. To combat these challenges, we propose a simple yet general method to solve this problem based on the LaMa image inpainting framework, dubbed GLaMa. Our proposed GLaMa can better capture different types of missing information by using more types of masks. By incorporating more degraded images in the training phase, we can expect to enhance the robustness of the model with respect to various masks. In order to yield more reasonable results, we further introduce a frequency-based loss in addition to the traditional spatial reconstruction loss and adversarial loss. In particular, we introduce an effective reconstruction loss both in the spatial and frequency domain to reduce the chessboard effect and ripples in the reconstructed image. Extensive experiments demonstrate that our method can boost the performance over the original LaMa method for each type of mask on FFHQ, ImageNet, Places2 and WikiArt dataset. The proposed GLaMa was ranked first in terms of PSNR, LPIPS and SSIM in the NTIRE 2022 Image Inpainting Challenge Track 1 Unsupervised.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 28 of its 43 references that are in the map. First posted on arXiv 15 May 2022.
Builds on
28 of 43 references.
References · 28
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 5,986
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
- 2016Context Encoders: Feature Learning by Inpaintingcited by 1,424
- 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,419
- 2021Resolution-robust Large Mask Inpainting with Fourier Convolutionscited by 730
- 2018Free-Form Image Inpainting with Gated Convolutioncited by 594
- 2018Generative Image Inpainting with Contextual Attentioncited by 578
16 more
- 2018Image Inpainting for Irregular Holes Using Partial Convolutionscited by 505
- 2014Understanding Deep Image Representations by Inverting Themcited by 399
- 2021Large Scale Image Completion via Co-Modulated Generative Adversarial Networkscited by 219
- 2020Focal Frequency Loss for Image Reconstruction and Synthesiscited by 204
- 2015Large-scale Classification of Fine-Art Paintings: Learning The Right Metric on The Right Featurecited by 181
- 2021High-Fidelity Pluralistic Image Completion with Transformerscited by 134
- 2020Rethinking Image Inpainting via a Mutual Encoder-Decoder with Feature Equalizationscited by 102
- 2020Bringing Old Photos Back to Lifecited by 95
- 2021Aggregated Contextual Transformations for High-Resolution Image Inpaintingcited by 89
- 2022Incremental Transformer Structure Enhanced Image Inpainting with Masking Positional Encodingcited by 83
- 2021Diverse Image Inpainting with Bidirectional and Autoregressive Transformerscited by 80
- 2020Frequency Domain Image Translation: More Photo-realistic, Better Identity-preservingcited by 46
- 2021Image Inpainting by End-to-End Cascaded Refinement with Mask Awarenesscited by 35
- 2019Spectral Regularization for Combating Mode Collapse in GANscited by 31
- 2020Spectral Distribution Aware Image Generationcited by 29
- 2021SWAGAN: A Style-based Wavelet-driven Generative Modelcited by 17
Built on by
Citing papers per year: 2022: 1; 2023: 6; 2024: 5; 2025: 3.
15 papers.
Sort:
By area:
- 2024Deep Learning-based Image and Video Inpainting: A Surveycited by 44
- 2024RAD: Region-Aware Diffusion Models for Image Inpaintingcited by 19
- 2024FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Modelcited by 15
- 2023VTAE: Variational Transformer Autoencoder with Manifolds Learningcited by 10
- 2023Breaking Through the Haze: An Advanced Non-Homogeneous Dehazing Method based on Fast Fourier Convolution and ConvNeXtcited by 8
- 2024Sketch-guided Image Inpainting with Partial Discrete Diffusion Processcited by 7
- 2025From Missing Pieces to Masterpieces: Image Completion with Context-Adaptive Diffusioncited by 2
- 2022Photorealistic Facial Wrinkles Removalcited by 1
- 2023Compensation Sampling for Improved Convergence in Diffusion Modelscited by 1
- 2023Image Completion via Dual-path Cooperative Filteringcited by 0
- 2023Both Spatial and Frequency Cues Contribute to High-Fidelity Image Inpaintingcited by 0
- 2023Distance Weighted Trans Network for Image Completioncited by 0
3 more
- 2024Windowed-FourierMixer: Enhancing Clutter-Free Room Modeling with Fourier Transformcited by 0
- 2025RETHINED: A New Benchmark and Baseline for Real-Time High-Resolution Image Inpainting On Edge Devicescited by 0
- 2025Time-variant Image Inpainting via Interactive Distribution Transition Estimationcited by 0
- 2025Time-variant Image Inpainting via Interactive Distribution Transition Estimation30 Jun 2025
- 2025From Missing Pieces to Masterpieces: Image Completion with Context-Adaptive Diffusion19 Apr 2025
- 2025RETHINED: A New Benchmark and Baseline for Real-Time High-Resolution Image Inpainting On Edge Devices18 Mar 2025
- 2024RAD: Region-Aware Diffusion Models for Image Inpainting12 Dec 2024
- 2024FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Model17 Oct 2024
- 2024Sketch-guided Image Inpainting with Partial Discrete Diffusion Process18 Apr 2024
- 2024Windowed-FourierMixer: Enhancing Clutter-Free Room Modeling with Fourier Transform28 Feb 2024
- 2024Deep Learning-based Image and Video Inpainting: A Survey7 Jan 2024
- 2023Compensation Sampling for Improved Convergence in Diffusion Models11 Dec 2023
- 2023Distance Weighted Trans Network for Image Completion11 Oct 2023
- 2023Both Spatial and Frequency Cues Contribute to High-Fidelity Image Inpainting15 Jul 2023
- 2023Breaking Through the Haze: An Advanced Non-Homogeneous Dehazing Method based on Fast Fourier Convolution and ConvNeXt8 May 2023
3 more
- 2023Image Completion via Dual-path Cooperative Filtering30 Apr 2023
- 2023VTAE: Variational Transformer Autoencoder with Manifolds Learning3 Apr 2023
- 2022Photorealistic Facial Wrinkles Removal3 Nov 2022
- 2024RAD: Region-Aware Diffusion Models for Image Inpaintingcited by 19
- 2024FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Modelcited by 15
- 2024Sketch-guided Image Inpainting with Partial Discrete Diffusion Processcited by 7
- 2025From Missing Pieces to Masterpieces: Image Completion with Context-Adaptive Diffusioncited by 2
- 2023Compensation Sampling for Improved Convergence in Diffusion Modelscited by 1
- 2025From Missing Pieces to Masterpieces: Image Completion with Context-Adaptive Diffusion19 Apr 2025
- 2024RAD: Region-Aware Diffusion Models for Image Inpainting12 Dec 2024
- 2024FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Model17 Oct 2024
- 2024Sketch-guided Image Inpainting with Partial Discrete Diffusion Process18 Apr 2024
- 2023Compensation Sampling for Improved Convergence in Diffusion Models11 Dec 2023
- 2024Deep Learning-based Image and Video Inpainting: A Surveycited by 44
- 2023VTAE: Variational Transformer Autoencoder with Manifolds Learningcited by 10
- 2023Breaking Through the Haze: An Advanced Non-Homogeneous Dehazing Method based on Fast Fourier Convolution and ConvNeXtcited by 8
- 2022Photorealistic Facial Wrinkles Removalcited by 1
- 2023Image Completion via Dual-path Cooperative Filteringcited by 0
- 2023Both Spatial and Frequency Cues Contribute to High-Fidelity Image Inpaintingcited by 0
- 2023Distance Weighted Trans Network for Image Completioncited by 0
- 2024Windowed-FourierMixer: Enhancing Clutter-Free Room Modeling with Fourier Transformcited by 0
- 2025RETHINED: A New Benchmark and Baseline for Real-Time High-Resolution Image Inpainting On Edge Devicescited by 0
- 2025Time-variant Image Inpainting via Interactive Distribution Transition Estimationcited by 0
- 2025Time-variant Image Inpainting via Interactive Distribution Transition Estimation30 Jun 2025
- 2025RETHINED: A New Benchmark and Baseline for Real-Time High-Resolution Image Inpainting On Edge Devices18 Mar 2025
- 2024Windowed-FourierMixer: Enhancing Clutter-Free Room Modeling with Fourier Transform28 Feb 2024
- 2024Deep Learning-based Image and Video Inpainting: A Survey7 Jan 2024
- 2023Distance Weighted Trans Network for Image Completion11 Oct 2023
- 2023Both Spatial and Frequency Cues Contribute to High-Fidelity Image Inpainting15 Jul 2023
- 2023Breaking Through the Haze: An Advanced Non-Homogeneous Dehazing Method based on Fast Fourier Convolution and ConvNeXt8 May 2023
- 2023Image Completion via Dual-path Cooperative Filtering30 Apr 2023
- 2023VTAE: Variational Transformer Autoencoder with Manifolds Learning3 Apr 2023
- 2022Photorealistic Facial Wrinkles Removal3 Nov 2022