JPGNet: Joint Predictive Filtering and Generative Network for Image Inpainting

Qing Guo, Xiaoguang Li, Felix Juefei-Xu, Hongkai Yu, Yang Liu +1 more
7/9/2021
cs.CV

Official code: tsingqguo/jpgnet (20 stars, Python, last commit 2021-12-15).

Abstract

Image inpainting aims to restore the missing regions of corrupted images and make the recovery result identical to the originally complete image, which is different from the common generative task emphasizing the naturalness or realism of generated images. Nevertheless, existing works usually regard it as a pure generation problem and employ cutting-edge deep generative techniques to address it.

Show full abstract

The generative networks can fill the main missing parts with realistic contents but usually distort the local structures or introduce obvious artifacts. In this paper, for the first time, we formulate image inpainting as a mix of two problems, predictive filtering and deep generation. Predictive filtering is good at preserving local structures and removing artifacts but falls short to complete the large missing regions. The deep generative network can fill the numerous missing pixels based on the understanding of the whole scene but hardly restores the details identical to the original ones. To make use of their respective advantages, we propose the joint predictive filtering and generative network (JPGNet) that contains three branches: predictive filtering & uncertainty network (PFUNet), deep generative network, and uncertainty-aware fusion network (UAFNet). The PFUNet can adaptively predict pixel-wise kernels for filtering-based inpainting according to the input image and output an uncertainty map. This map indicates the pixels should be processed by filtering or generative networks, which is further fed to the UAFNet for a smart combination between filtering and generative results. Note that, our method as a novel inpainting framework can benefit any existing generation-based methods. We validate our method on three public datasets, Dunhuang, Places2, and CelebA, and demonstrate that our method can enhance three state-of-the-art generative methods significantly with slightly extra time costs.

View on arXivView PDF

Code Implementations(1)

tsingqguo/jpgnetOfficial100%

We proposed a novel framework for image inpainting. https://arxiv.org/abs/2107.04281

200Python, CudaJul 13, 20214 years ago

Similar Papers

Cite this paper

@article{guo2021jpgnet,
  title  = {JPGNet: Joint Predictive Filtering and Generative Network for Image Inpainting},
  author = {Qing Guo and Xiaoguang Li and Felix Juefei-Xu and Hongkai Yu and Yang Liu and Song wang},
  year   = {2021},
  eprint = {2107.04281},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.04281}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.04281.svg)](https://codeofpaper.com/paper/2107.04281)

Discussion