GLaMa: Joint Spatial and Frequency Loss for General Image Inpainting
Zeyu Lu, Junjun Jiang, Junqin Huang, Gang Wu, Xianming Liu

TL;DR
GLaMa enhances image inpainting by integrating spatial and frequency domain losses, improving robustness across various mask types and outperforming previous methods in multiple datasets and challenges.
Contribution
The paper introduces GLaMa, a novel inpainting framework that combines spatial and frequency losses to handle diverse masks and improve image reconstruction quality.
Findings
Outperforms LaMa on multiple datasets
Ranks first in NTIRE 2022 challenge
Improves robustness to various mask types
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGenerative Adversarial Networks and Image Synthesis · Advanced Image Processing Techniques · AI in cancer detection
MethodsTanh Activation · Softmax · Low-Rank Factorization-based Multi-Head Attention · Inpainting
