RGI: robust GAN-inversion for mask-free image inpainting and unsupervised pixel-wise anomaly detection
Shancong Mou, Xiaoyi Gu, Meng Cao, Haoping Bai, Ping Huang, Jiulong Shan, Jianjun Shi
Abstract
Generative adversarial networks (GANs), trained on a large-scale image dataset, can be a good approximator of the natural image manifold. GAN-inversion, using a pre-trained generator as a deep generative prior, is a promising tool for image restoration under corruptions. However, the performance of GAN-inversion can be limited by a lack of robustness to unknown gross corruptions, i.e., the restored image might easily deviate from the ground truth. In this paper, we propose a Robust GAN-inversion (RGI) method with a provable robustness guarantee to achieve image restoration under unknown gross corruptions, where a small fraction of pixels are completely corrupted. Under mild assumptions, we show that the restored image and the identified corrupted region mask converge asymptotically to the ground truth. Moreover, we extend RGI to Relaxed-RGI (R-RGI) for generator fine-tuning to mitigate the gap between the GAN learned manifold and the true image manifold while avoiding trivial overfitting to the corrupted input image, which further improves the image restoration and corrupted region mask identification performance. The proposed RGI/R-RGI method unifies two important applications with state-of-the-art (SOTA) performance: (i) mask-free semantic inpainting, where the corruptions are unknown missing regions, the restored background can be used to restore the missing content; (ii) unsupervised pixel-wise anomaly detection, where the corruptions are unknown anomalous regions, the retrieved mask can be used as the anomalous region's segmentation mask.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a0f5e63d-06f3-4765-869a-a2228315aa0cCited by top-tier papers8
- AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly DetectionQihang Zhou, Guansong Pang, Yu Tian, Shibo He et al.ICLR 2024 · 380 citations
- VisualAD: Language-Free Zero-Shot Anomaly Detection via Vision TransformerYanning Hou, Peiyuan Li, Zirui Liu, Yitong Wang et al.CVPR 2026 · 14 citations
- FB-CLIP: Fine-Grained Zero-Shot Anomaly Detection with Foreground-Background DisentanglementMing Hu, Yongsheng Huo, Mingyu Dou, Jianfu Yin et al.CVPR 2026 · 2 citations
- Toward Long-Tailed Online Anomaly Detection Through Class-Agnostic ConceptsChiao-An Yang, Kuan-Chuan Peng, Raymond A. YehICCV 2025 · 1 citation
- Defect Cue-Preserved Structural Feature Refinement for Few-Shot Anomaly DetectionLe Jiang, Yan Huang, Zhen Xu, Yong Xu et al.CVPR 2026
Builds on13
- Training Generative Adversarial Networks with Limited DataTero Karras, Miika Aittala, Janne Hellsten, Samuli Laine et al.NeurIPS 2020 · 2,345 citations
- Free-Form Image Inpainting With Gated ConvolutionJiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen et al.ICCV 2019 · 1,990 citations
- Towards Total Recall in Industrial Anomaly DetectionKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf et al.CVPR 2022 · 1,301 citations
- Image2StyleGAN: How to Embed Images Into the StyleGAN Latent Space?Rameen Abdal, Yipeng Qin, Peter WonkaICCV 2019 · 1,195 citations
- Coherent Semantic Attention for Image InpaintingHongyu Liu, Bin Jiang, Yi Xiao, Chao YangICCV 2019 · 395 citations
Related papers
- High-Resolution GAN Inversion for Degraded Images in Large Diverse DatasetsYanbo Wang, Chuming Lin, Donghao Luo, Ying Tai et al.AAAI 2023 · 9 citations
- Network-Free, Unsupervised Semantic Segmentation with Synthetic ImagesQianli Feng, Raghudeep Gadde, Wentong Liao, Eduard Ramon et al.CVPR 2023
- Dual-path Image Inpainting with Auxiliary GAN InversionWentao Wang, Li Niu, Jianfu Zhang, Xue Yang et al.CVPR 2022 · 46 citations
- Iterative energy-based projection on a normal data manifold for anomaly localizationDavid Dehaene, Oriel Frigo, Sébastien Combrexelle, Pierre ElineICLR 2020 · 157 citations
- Progressive Reconstruction of Visual Structure for Image InpaintingJingyuan Li, Fengxiang He, Lefei Zhang, Bo Du et al.ICCV 2019 · 151 citations
