[Paper Review] Image Fine-grained Inpainting
This work introduces DMFN, a one-stage inpainting model with dense multi-scale fusion blocks and novel losses (self-guided regression and geometrical alignment) to produce high-fidelity, semantically consistent results across faces, buildings, and scenes.
Image inpainting techniques have shown promising improvement with the assistance of generative adversarial networks (GANs) recently. However, most of them often suffered from completed results with unreasonable structure or blurriness. To mitigate this problem, in this paper, we present a one-stage model that utilizes dense combinations of dilated convolutions to obtain larger and more effective receptive fields. Benefited from the property of this network, we can more easily recover large regions in an incomplete image. To better train this efficient generator, except for frequently-used VGG feature matching loss, we design a novel self-guided regression loss for concentrating on uncertain areas and enhancing the semantic details. Besides, we devise a geometrical alignment constraint item to compensate for the pixel-based distance between prediction features and ground-truth ones. We also employ a discriminator with local and global branches to ensure local-global contents consistency. To further improve the quality of generated images, discriminator feature matching on the local branch is introduced, which dynamically minimizes the similarity of intermediate features between synthetic and ground-truth patches. Extensive experiments on several public datasets demonstrate that our approach outperforms current state-of-the-art methods. Code is available at https://github.com/Zheng222/DMFN.
Motivation & Objective
- Motivate improvements in image inpainting for large regions with fine-grained texture and semantic accuracy.
- Propose a one-stage generator with dense multi-scale fusion to enlarge receptive fields efficiently.
- Introduce self-guided regression and geometrical alignment losses to enhance semantic fidelity and spatial alignment.
- Incorporate a two-branch discriminator with local-global focus and feature matching to stabilize training and quality.
- Demonstrate state-of-the-art performance on multiple datasets including faces, buildings, and scenes.
Proposed method
- Propose dense multi-scale fusion blocks (DMFB) that fuse features from four dilated convolutions with varying rates to enlarge receptive fields densely.
- Use a one-stage generator trained end-to-end with a combination of losses including MAE, self-guided regression, VGG feature matching, discriminator feature matching, adversarial loss, and alignment loss.
- Introduce self-guided regression loss that uses a normalized discrepancy map to re-weight VGG features and focus on uncertain areas.
- Introduce geometrical alignment constraint that aligns high-level feature centers (via VGG activations) between output and ground-truth.
- Adopt Relativistic Average GAN (RaGAN) with a two-branch discriminator (global and local) to enforce global consistency and local realism.
- Train and evaluate on Paris Street View, Places2, CelebA-HQ, and FFHQ datasets, comparing against CA, GMCNN, PICNet, and PENNet.
Experimental results
Research questions
- RQ1Can a one-stage inpainting model with dense multi-scale fusion achieve superior global structure and local texture fidelity compared to existing methods?
- RQ2Do self-guided regression and geometrical alignment losses improve semantic consistency and spatial alignment in inpainted regions?
- RQ3How does a two-branch RaGAN discriminator with local feature matching affect realism and artifact reduction?
- RQ4What are the quantitative gains on standard inpainting benchmarks (LPIPS, PSNR, SSIM) when compared to state-of-the-art methods?
- RQ5Is the proposed method effective across diverse content such as faces, buildings, and natural scenes?
Key findings
- DMFN achieves competitive or superior LPIPS, PSNR, and SSIM across Paris Street View, Places2, CelebA-HQ, and FFHQ compared to CA, GMCNN, PICNet, and PENNet.
- The DMFB design provides denser and larger receptive fields with fewer parameters than large-kernel alternatives, improving large-hole inpainting.
- Self-guided regression focuses learning on uncertain regions via a guidance map, improving fine-grained semantic detail.
- Geometrical alignment constraint improves spatial correspondence of high-level features between generated and ground-truth images, aiding plausible structure placement.
- A two-branch local-global discriminator with discriminator feature matching enhances realism and reduces artifacts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.