Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation
Xingang Pan, Xiaohang Zhan, Bo Dai, Dahua Lin, Chen Change Loy, Ping Luo
TL;DR
This work introduces Deep Generative Prior (DGP), a universal image prior derived from a pre-trained GAN on large natural-image datasets, to enable versatile restoration and manipulation. By relaxing GAN inversion to allow on-the-fly fine-tuning of both the generator and latent vector, and by enforcing discriminator-guided feature matching with a progressive, block-wise optimization, DGP preserves natural image statistics while recovering missing semantics. The approach achieves high-quality restoration (colorization, inpainting, super-resolution) and enables compelling manipulation (random jittering, morphing, category transfer) on complex datasets like ImageNet, outperforming traditional GAN-inversion baselines. The paper also provides detailed implementation guidance for applying DGP in practical settings and demonstrates its broader applicability beyond single-image priors.
Abstract
Learning a good image prior is a long-term goal for image restoration and manipulation. While existing methods like deep image prior (DIP) capture low-level image statistics, there are still gaps toward an image prior that captures rich image semantics including color, spatial coherence, textures, and high-level concepts. This work presents an effective way to exploit the image prior captured by a generative adversarial network (GAN) trained on large-scale natural images. As shown in Fig.1, the deep generative prior (DGP) provides compelling results to restore missing semantics, e.g., color, patch, resolution, of various degraded images. It also enables diverse image manipulation including random jittering, image morphing, and category transfer. Such highly flexible restoration and manipulation are made possible through relaxing the assumption of existing GAN-inversion methods, which tend to fix the generator. Notably, we allow the generator to be fine-tuned on-the-fly in a progressive manner regularized by feature distance obtained by the discriminator in GAN. We show that these easy-to-implement and practical changes help preserve the reconstruction to remain in the manifold of nature image, and thus lead to more precise and faithful reconstruction for real images. Code is available at https://github.com/XingangPan/deep-generative-prior.
