Skip to main content
QUICK REVIEW

[Paper Review] Deep Flow-Guided Video Inpainting

Rui Xu, Xiaoxiao Li|arXiv (Cornell University)|May 8, 2019
Generative Adversarial Networks and Image SynthesisComputer Science26 references4 citations
TL;DR

This paper proposes a deep flow-guided video inpainting method that treats video inpainting as a pixel propagation problem guided by a completed optical flow field. By using a novel coarse-to-fine Deep Flow Completion network with hard example mining, the method achieves state-of-the-art performance in both inpainting quality and speed on DAVIS and YouTube-VOS benchmarks, significantly outperforming optimization-based and direct deep learning approaches.

ABSTRACT

Video inpainting, which aims at filling in missing regions of a video, remains challenging due to the difficulty of preserving the precise spatial and temporal coherence of video contents. In this work we propose a novel flow-guided video inpainting approach. Rather than filling in the RGB pixels of each frame directly, we consider video inpainting as a pixel propagation problem. We first synthesize a spatially and temporally coherent optical flow field across video frames using a newly designed Deep Flow Completion network. Then the synthesized flow field is used to guide the propagation of pixels to fill up the missing regions in the video. Specifically, the Deep Flow Completion network follows a coarse-to-fine refinement to complete the flow fields, while their quality is further improved by hard flow example mining. Following the guide of the completed flow, the missing video regions can be filled up precisely. Our method is evaluated on DAVIS and YouTube-VOS datasets qualitatively and quantitatively, achieving the state-of-the-art performance in terms of inpainting quality and speed.

Motivation & Objective

  • To address the challenge of preserving spatial and temporal coherence in video inpainting under complex motions and arbitrary missing regions.
  • To overcome the limitations of patch-based optimization methods, which struggle with complex motion and suffer from high computational cost.
  • To reduce computational burden and temporal artifacts by shifting from direct pixel inpainting to flow-guided pixel propagation.
  • To improve flow completion quality in missing regions through coarse-to-fine refinement and hard example mining.
  • To achieve real-time performance without assumptions on motion or missing region shape.

Proposed method

  • A Deep Flow Completion network (DFC-Net) is designed with a coarse-to-fine stacked architecture to progressively refine flow fields across frames.
  • The network processes batches of consecutive frames to enhance temporal consistency, leveraging temporal continuity in adjacent frames.
  • Multi-scale input processing is used in each stage to stabilize training and improve flow accuracy, especially in complex regions.
  • Hard flow example mining is applied to focus on challenging regions such as motion boundaries and dynamic areas, improving completion quality.
  • After flow completion, pixel propagation is performed bidirectionally using the estimated flow to fill missing regions before applying image inpainting on residual areas.
  • The method decouples the problem: flow completion is prioritized first, followed by flow-guided pixel propagation and final refinement via image inpainting.

Experimental results

Research questions

  • RQ1Can optical flow completion be used as a more efficient and accurate alternative to direct pixel-based video inpainting?
  • RQ2How can a deep network be designed to complete optical flows in arbitrary-shaped missing regions while maintaining temporal coherence?
  • RQ3What architectural components (e.g., coarse-to-fine, multi-scale, hard example mining) most effectively improve flow completion quality?
  • RQ4To what extent does flow-guided pixel propagation reduce the residual inpainting burden and improve visual quality?
  • RQ5How does the proposed method compare in speed and performance to optimization-based and end-to-end deep learning methods on real-world video datasets?

Key findings

  • The proposed method achieves a PSNR of 28.26 and SSIM of 0.48 on the DAVIS dataset, outperforming prior methods such as Huang et al. (PSNR 27.73, SSIM 0.45) with FlowNet2.
  • The ablation study shows that flow-guided pixel propagation improves PSNR from 19.43 to 27.50 and SSIM from 0.24 to 0.41, demonstrating its critical role in performance.
  • The stacked DFC-Net with multi-scale input achieves an end-point error (EPE) of 0.93, outperforming the single-stage DFC-Single (EPE 0.97) and the non-multi-scale variant (EPE 0.95).
  • Hard example mining improves flow quality in dynamic and boundary regions, contributing to better overall inpainting results.
  • The method runs significantly faster than optimization-based approaches, completing a 90-frame video in minutes rather than hours.
  • Failure cases are primarily due to inaccurate flow estimation at object edges, indicating a need for more robust flow estimation in future work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.