NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HomoGen: Enhanced Video Inpainting via Homography Propagation and Diffusion

Ding Ding, Yueming Pan, Ruoyu Feng, Qi Dai, Kai Qiu, Jianmin Bao, Chong Luo, Zhenzhong Chen

Abstract

Video inpainting aims to fill missing regions in video sequences while maintaining spatiotemporal consistency. Traditional methods often rely on a "propagate-then-fill" pipeline using optical flow, which is prone to local distortions and error accumulation in subsequent Video Transformer stages. We present HomoGen, a framework that replaces local flow with global homography-based registration for pixel propagation. By utilizing a Prior Controlled Video Diffusion Model (PCVDM), HomoGen effectively filters out warping artifacts to produce semantically consistent results. Our method achieves a 23.81% improvement in Video Frechet Inception Distance (VFID) on the YouTube-VOS benchmark compared to existing state-of-the-art techniques.

Introduction

The task of video inpainting, particularly for object removal, faces significant challenges due to complex camera and object dynamics. Current state-of-the-art (SOTA) approaches typically employ a two-stage process: first, warping pixels from neighboring frames using optical flow, and second, filling the remaining gaps using a Video Transformer (VT). However, optical flow often introduces local blurs and warping artifacts. To mitigate this, consistency checks are used to discard unreliable pixels, which frequently results in a sparse and insufficient prior for the filling stage. Furthermore, Video Transformers are sensitive to noise, often magnifying initial warping errors into unrealistic final outputs.

Methods

HomoGen addresses these issues by prioritizing semantic integrity over precise local alignment through two key innovations.

Comparison of the traditional optical flow-based pipeline versus the proposed HomoGen framework.

1. Homography-based Pixel Propagation (HPP)

Instead of point-to-point optical flow, HomoGen utilizes homography matrices for frame registration. While homography—a global geometric transformation—may introduce minor structural shifts, it preserves the global semantic integrity of the scene far better than the jittery distortions associated with optical flow. Notably, HomoGen retains all propagated pixels without a consistency check, providing a richer context for the generative stage.

2. Prior Controlled Video Diffusion Model (PCVDM)

We argue that Diffusion Models (DMs) are superior to Transformers for this task because their iterative denoising process naturally filters out low-level noise while prioritizing semantic information. Our PCVDM extends a pre-trained Stable Diffusion model into a 3D U-Net to handle temporal sequences. It incorporates a "LiteControlNet" module that uses learned scalers to adaptively weight the homography priors based on the spatiotemporal context. This allows the model to ignore early warping artifacts and focus on reconstructing the underlying scene structure.

Evaluation and Results

We evaluated HomoGen on standard benchmarks (YouTube-VOS, DAVIS) and the Real-world Object Removal Dataset (RORD). HomoGen demonstrated superior perceptual quality, improving VFID by 23.81% on YouTube-VOS and 21.43% on DAVIS. It also achieved higher PSNR and SSIM scores, particularly in scenarios with large masks or limited camera motion. In user studies, HomoGen was preferred over SOTA methods like ProPainter in over 50% of cases regarding spatial coherence and visual quality.

Conclusion

HomoGen represents a significant shift in video inpainting by leveraging global homography and the robust denoising capabilities of diffusion models. While challenges remain in processing high-resolution video and handling extremely complex non-rigid motion, the framework provides a more semantically coherent solution for real-world object removal tasks.

Summary updated

BibTeX
@inproceedings{ding2025homogen,
  author = {Ding Ding and Yueming Pan and Ruoyu Feng and Qi Dai and Kai Qiu and Jianmin Bao and Chong Luo and Zhenzhong Chen},
  title = {{HomoGen: Enhanced Video Inpainting via Homography Propagation and Diffusion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02137},
}
Figure