[Paper Review] Improving Consistency and Correctness of Sequence Inpainting using Semantically Guided Generative Adversarial Network
This paper proposes a semantically guided generative adversarial network (SG-GAN) for sequence inpainting that improves both consistency and correctness by conditioning the generator on automatically extracted facial semantics. By disentangling pose and appearance cues, the model generates temporally coherent, high-fidelity face reconstructions, outperforming baseline GANs like DIP in PSNR and consistency metrics across CelebA and YouTube Faces datasets at 64×64 and 128×128 resolutions.
Contemporary benchmark methods for image inpainting are based on deep generative models and specifically leverage adversarial loss for yielding realistic reconstructions. However, these models cannot be directly applied on image/video sequences because of an intrinsic drawback- the reconstructions might be independently realistic, but, when visualized as a sequence, often lacks fidelity to the original uncorrupted sequence. The fundamental reason is that these methods try to find the best matching latent space representation near to natural image manifold without any explicit distance based loss. In this paper, we present a semantically conditioned Generative Adversarial Network (GAN) for sequence inpainting. The conditional information constrains the GAN to map a latent representation to a point in image manifold respecting the underlying pose and semantics of the scene. To the best of our knowledge, this is the first work which simultaneously addresses consistency and correctness of generative model based inpainting. We show that our generative model learns to disentangle pose and appearance information; this independence is exploited by our model to generate highly consistent reconstructions. The conditional information also aids the generator network in GAN to produce sharper images compared to the original GAN formulation. This helps in achieving more appealing inpainting performance. Though generic, our algorithm was targeted for inpainting on faces. When applied on CelebA and Youtube Faces datasets, the proposed method results in a significant improvement over the current benchmark, both in terms of quantitative evaluation (Peak Signal to Noise Ratio) and human visual scoring over diversified combinations of resolutions and deformations.
Motivation & Objective
- To address the lack of temporal consistency in GAN-based image sequence inpainting, where independent frame reconstructions cause flickering and structural inconsistency.
- To improve reconstruction correctness by conditioning the GAN generator on semantic priors such as facial landmarks and expressions.
- To enable disentanglement of pose and appearance factors in the latent space for more faithful and controllable generation.
- To develop a framework that maintains facial semantics—such as expressions and texture—across video frames during inpainting.
- To demonstrate the viability of semantic conditioning in real-world video inpainting applications beyond controlled datasets.
Proposed method
- A semantically conditioned GAN architecture is proposed, where the generator is conditioned on facial semantic embeddings extracted via a pre-trained facial keypoint detector.
- The semantic embedding acts as a conditional prior, guiding the generator to produce images that preserve pose and appearance across frames.
- The model disentangles appearance and pose information in the latent space, enabling consistent generation even under varying deformations.
- A consistency loss is introduced to measure temporal coherence across frames, with lower values indicating higher consistency.
- The generator is trained using adversarial loss, perceptual loss, and a novel semantic consistency loss to improve realism and structural fidelity.
- The framework is evaluated on CelebA and YouTube Faces datasets using both quantitative metrics (PSNR, consistency) and human evaluation.
Experimental results
Research questions
- RQ1Can semantic conditioning improve temporal consistency in GAN-based sequence inpainting?
- RQ2Does conditioning on facial semantics lead to better reconstruction correctness and visual quality?
- RQ3Can the model disentangle pose and appearance factors to enable more stable and realistic generation across video frames?
- RQ4How does the proposed method compare to state-of-the-art GAN-based inpainting models like DIP in terms of PSNR and consistency metrics?
- RQ5Can the model generalize to real-world video sequences with domain shift, such as YouTube Faces, without fine-tuning?
Key findings
- At 64×64 resolution, the proposed method achieved a mean consistency gain of 4.62 dB over DIP on random central masks, with p-value ≤ 10−5, indicating statistical significance.
- On 128×128 resolution, the method outperformed DIP by 1.84 dB in consistency for random central masks, 3.2 dB for freehand masks, and 1.05 dB for constant left masks.
- The model achieved a PSNR of 26.15 dB on Gary Bettman and 23.67 dB on Elizabeth Hurley from the YouTube Faces dataset, significantly outperforming DIP’s 22.48 dB and 13.05 dB respectively.
- Visual analysis confirmed that the model preserves facial expressions, eye openness, and skin texture across frames, avoiding the flickering and abrupt changes seen in DIP.
- The model demonstrated robustness across diverse deformation types, including random central crops, freehand masks, and constant left-side corruption.
- The semantic conditioning enabled disentanglement of appearance and pose, allowing the generator to maintain identity and expression consistency during generation.
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.