VORNet: Spatio-Temporally Consistent Video Inpainting for Object Removal

Ya-Liang Chang, Zhe Yu Liu, Winston H. HsuWorkshops @ CVPR 2019

Abstract

Video object removal (video inpainting) is a challenging task that requires filling missing regions with content that is both spatially plausible and temporally consistent. Traditional image-based inpainting models, when applied frame-by-frame, often result in distracting flickering and "shimmering" artifacts. We present VORNet (Video Object Removal Network), a deep learning framework that ensures spatio-temporal consistency by combining optical flow warping with a recurrent refinement network. By prioritizing the reuse of existing background information from previous frames over purely generative "hallucination," VORNet produces stable, high-quality video outputs.

Introduction

While modern deep learning models have achieved impressive results in image inpainting, extending these techniques to video remains difficult. The primary challenge is temporal inconsistency: because image-based models treat each frame independently, the generated content shifts slightly from frame to frame, leading to visual artifacts. Existing solutions typically fall into two categories: slow, patch-based methods that struggle with complex textures, or deep learning image models that lack temporal awareness. VORNet bridges this gap by incorporating a memory mechanism that utilizes actual background information from the video's timeline whenever possible.

Methodology

The VORNet architecture operates in a recurrent loop consisting of three primary components:

  1. Warping Network: This component uses FlowNet2 to estimate optical flow between frames. Instead of generating new pixels, it attempts to "warp" background information from previous frames into the current frame's missing region.
  2. Inpainting Network: For regions that have been occluded for extended periods and cannot be recovered via warping, a state-of-the-art image inpainting model (based on Yu et al.) generates plausible new content.
  3. Refinement Network: Acting as the system's "brain," this network receives candidates from both the warping and inpainting stages. It utilizes a ConvLSTM (Convolutional Long Short-Term Memory) layer to propagate temporal features across frames, selecting the best candidate based on perceptual similarity (LPIPS) to the previous frame's result.

The model is trained using a combination of spatial losses (Reconstruction, VGG Perceptual, and PatchGAN) and a Temporal GAN loss. The latter employs a siamese-style discriminator to penalize inconsistencies between consecutive frames, forcing the model to learn natural background evolution.

The SVOR Dataset

To facilitate training, the authors introduced the Synthesized Video Object Removal (SVOR) dataset. Derived from the YouTube-VOS video segmentation dataset, SVOR consists of 1,958 pairs of "video-with-target" and "ground-truth-background" sequences. The dataset includes diverse challenges such as camera shake, varying lighting conditions, and complex motions, providing a robust benchmark for video inpainting.

Key Results

VORNet demonstrates significant improvements over both patch-based and image-based baselines in maintaining visual stability.

Comparison of (a) Input video, (b) Image-based inpainting, and (c) VORNet (Ours). VORNet maintains superior temporal consistency and detail preservation across frames.

Quantitative Performance

VORNet achieved the highest scores in LPIPS (0.1889 compared to the next best 0.2249), a metric closely aligned with human perception. It also outperformed competitors in Structural Similarity (SSIM).

Qualitative Analysis

As shown in the comparison above, VORNet preserves fine details and textures across frames, whereas image-based methods often "smear" content or lose detail as the sequence progresses. The model operates at approximately 2.5 FPS, making it significantly faster than traditional patch-based methods while maintaining an "online" processing capability (no requirement to see future frames).

Conclusion and Future Work

VORNet successfully addresses the problem of temporal flickering in video object removal by integrating flow-based warping with recurrent refinement. While the model relies heavily on the accuracy of optical flow estimation, future work could involve end-to-end training of motion estimation and inpainting. Additionally, integrating temporal attention mechanisms may further improve the selection of historical frames for warping in long sequences.

Summary updated

BibTeX
@inproceedings{chang2019vornet,
  author = {Ya-Liang Chang and Zhe Yu Liu and Winston H. Hsu},
  title = {{VORNet: Spatio-Temporally Consistent Video Inpainting for Object Removal}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  doi = {10.1109/cvprw.2019.00229},
}
Figure