mlsanityData to 7 Oct 2026

GLaMa: Joint Spatial and Frequency Loss for General Image Inpainting

arXiv 2205.07162 ↗First posted 15 May 2022cs.CVcited by 15

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
  4. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
  5. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  6. 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 5,986
  7. 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
  8. 2016Context Encoders: Feature Learning by Inpaintingcited by 1,424
  9. 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,419
  10. 2021Resolution-robust Large Mask Inpainting with Fourier Convolutionscited by 730
  11. 2018Free-Form Image Inpainting with Gated Convolutioncited by 594
  12. 2018Generative Image Inpainting with Contextual Attentioncited by 578
16 more
  1. 2018Image Inpainting for Irregular Holes Using Partial Convolutionscited by 505
  2. 2014Understanding Deep Image Representations by Inverting Themcited by 399
  3. 2021Large Scale Image Completion via Co-Modulated Generative Adversarial Networkscited by 219
  4. 2020Focal Frequency Loss for Image Reconstruction and Synthesiscited by 204
  5. 2015Large-scale Classification of Fine-Art Paintings: Learning The Right Metric on The Right Featurecited by 181
  6. 2021High-Fidelity Pluralistic Image Completion with Transformerscited by 134
  7. 2020Rethinking Image Inpainting via a Mutual Encoder-Decoder with Feature Equalizationscited by 102
  8. 2020Bringing Old Photos Back to Lifecited by 95
  9. 2021Aggregated Contextual Transformations for High-Resolution Image Inpaintingcited by 89
  10. 2022Incremental Transformer Structure Enhanced Image Inpainting with Masking Positional Encodingcited by 83
  11. 2021Diverse Image Inpainting with Bidirectional and Autoregressive Transformerscited by 80
  12. 2020Frequency Domain Image Translation: More Photo-realistic, Better Identity-preservingcited by 46
  13. 2021Image Inpainting by End-to-End Cascaded Refinement with Mask Awarenesscited by 35
  14. 2019Spectral Regularization for Combating Mode Collapse in GANscited by 31
  15. 2020Spectral Distribution Aware Image Generationcited by 29
  16. 2021SWAGAN: A Style-based Wavelet-driven Generative Modelcited by 17

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 6; 2024: 5; 2025: 3.

15 papers.

Sort:

By area: