Skip to main content
QUICK REVIEW

[Paper Review] Frame-Recurrent Video Inpainting by Robust Optical Flow Inference

Yifan Ding, Chuan Wang|arXiv (Cornell University)|May 8, 2019
Advanced Vision and ImagingComputer Science34 references14 citations
TL;DR

This paper proposes a frame-recurrent video inpainting framework that combines ConvLSTM with a robust optical flow generation module to achieve high-quality, temporally consistent video restoration. By fusing optical flows from inpainted frames and original corrupted frames via a trainable blending network, the method enables accurate motion modeling and real-time processing of videos with arbitrary length and resolution, outperforming state-of-the-art approaches in both quality and efficiency.

ABSTRACT

In this paper, we present a new inpainting framework for recovering missing regions of video frames. Compared with image inpainting, performing this task on video presents new challenges such as how to preserving temporal consistency and spatial details, as well as how to handle arbitrary input video size and length fast and efficiently. Towards this end, we propose a novel deep learning architecture which incorporates ConvLSTM and optical flow for modeling the spatial-temporal consistency in videos. It also saves much computational resource such that our method can handle videos with larger frame size and arbitrary length streamingly in real-time. Furthermore, to generate an accurate optical flow from corrupted frames, we propose a robust flow generation module, where two sources of flows are fed and a flow blending network is trained to fuse them. We conduct extensive experiments to evaluate our method in various scenarios and different datasets, both qualitatively and quantitatively. The experimental results demonstrate the superior of our method compared with the state-of-the-art inpainting approaches.

Motivation & Objective

  • To address the challenge of preserving temporal consistency and spatial detail in video inpainting, especially under arbitrary video length and frame size.
  • To overcome the limitations of 3D CNNs in handling large motions and high computational costs.
  • To develop a robust optical flow estimation method that works effectively on frames with missing regions (holes).
  • To enable real-time, streaming video inpainting without fixed-size or length constraints.
  • To integrate spatial modeling via image inpainting with temporal modeling via ConvLSTM for superior reconstruction quality.

Proposed method

  • A ConvLSTM-based architecture is used to model temporal dependencies across frames, leveraging optical flow as an intermediate representation to preserve motion consistency.
  • A robust optical flow generation module fuses two flow sources: one from inpainted frames and one from original corrupted frames, using a trainable blending network.
  • The blending network learns to combine flows adaptively, reducing errors and improving motion estimation accuracy in hole regions.
  • Image inpainting is applied frame-wisely using a spatial network (e.g., PartialConv) to initialize frame content before temporal refinement.
  • A joint loss function balances spatial and temporal consistency, minimizing flickering and enhancing visual quality.
  • The framework processes videos in a streaming fashion, enabling real-time inference on arbitrary-length and high-resolution videos.

Experimental results

Research questions

  • RQ1Can a frame-recurrent architecture with ConvLSTM effectively model long-range temporal dependencies in video inpainting without 3D CNNs?
  • RQ2How can accurate optical flow be estimated in frames with missing regions to guide temporal reconstruction?
  • RQ3Can a learnable flow blending mechanism improve motion estimation robustness compared to using single-source flows?
  • RQ4Does the proposed method achieve superior performance in both visual quality and temporal consistency across diverse masks and datasets?
  • RQ5Can the framework handle videos of arbitrary length and resolution in real-time, unlike prior 3D-CNN-based methods?

Key findings

  • The proposed method achieves state-of-the-art performance on both FaceForensics and DAVIS+VIDEVO datasets across all mask types: fixed rectangle, random rectangle, and random walker masks.
  • Ablation studies confirm that the ConvLSTM module significantly improves temporal consistency, reducing flickering artifacts compared to frame-wise inpainting.
  • The flow blending network reduces optical flow errors, leading to more accurate motion modeling and better reconstruction, especially for large motions.
  • The method outperforms PartialConv-only and ConvLSTM-only baselines, demonstrating the complementary strengths of spatial and temporal modeling.
  • Quantitative results show lower L1 loss and higher FID/SSIM scores than prior methods, with consistent gains across all evaluation settings.
  • The framework enables real-time, streaming inference on videos of arbitrary length and frame size, overcoming a key limitation of previous 3D-CNN-based approaches.

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.