Skip to main content
QUICK REVIEW

[Paper Review] DeepMovie: Using Optical Flow and Deep Neural Networks to Stylize Movies

Alexander G. Anderson, Cory P. Berg|arXiv (Cornell University)|May 26, 2016
Advanced Vision and ImagingComputer Science19 references17 citations
TL;DR

This paper proposes a method to stylize videos using deep neural networks and optical flow to ensure temporal coherence. By using optical flow to warp the previous frame's stylized output as initialization for the next frame, the method achieves smooth, object-consistent style transfer, significantly improving visual quality over frame-independent or naive frame-to-frame initialization approaches.

ABSTRACT

A recent paper by Gatys et al. describes a method for rendering an image in the style of another image. First, they use convolutional neural network features to build a statistical model for the style of an image. Then they create a new image with the content of one image but the style statistics of another image. Here, we extend this method to render a movie in a given artistic style. The naive solution that independently renders each frame produces poor results because the features of the style move substantially from one frame to the next. The other naive method that initializes the optimization for the next frame using the rendered version of the previous frame also produces poor results because the features of the texture stay fixed relative to the frame of the movie instead of moving with objects in the scene. The main contribution of this paper is to use optical flow to initialize the style transfer optimization so that the texture features move with the objects in the video. Finally, we suggest a method to incorporate optical flow explicitly into the cost function.

Motivation & Objective

  • To address the challenge of applying neural style transfer to video while maintaining temporal coherence.
  • To overcome the limitations of independent frame-by-frame stylization, which causes flickering and inconsistent texture movement.
  • To improve upon naive frame-to-frame initialization, where style features remain fixed relative to the frame instead of moving with objects.
  • To develop a method that leverages optical flow to guide style transfer optimization across consecutive video frames.
  • To explore the integration of optical flow directly into the style transfer cost function for enhanced consistency.

Proposed method

  • The method extends Gatys et al.'s neural style transfer to video by using optical flow to warp the stylized output of the previous frame as initialization for the next frame.
  • Optical flow fields are computed between consecutive video frames to estimate motion vectors for each pixel.
  • The warped previous frame's stylized image is used as the initial image for the optimization process in the next frame, ensuring style features move with objects.
  • The style transfer optimization uses a loss function combining content loss, style loss (Gram matrix differences), and total variation regularization.
  • The authors propose incorporating optical flow explicitly into the cost function to further regularize temporal consistency.
  • Histogram matching is applied to the style image to better handle lighting variations and special effects, improving robustness.

Experimental results

Research questions

  • RQ1How can neural style transfer be adapted to video to ensure that stylized textures move consistently with moving objects across frames?
  • RQ2What are the limitations of frame-independent and frame-to-frame initialization methods in video stylization, and how can they be overcome?
  • RQ3Can optical flow be effectively used to initialize the style transfer optimization in subsequent frames to improve temporal coherence?
  • RQ4To what extent does explicitly including optical flow in the loss function enhance the visual quality and consistency of stylized video?
  • RQ5How can simple image properties (e.g., lighting, contrast) be disentangled from complex style features in neural style transfer for better artistic control?

Key findings

  • Using optical flow to initialize the style transfer for each subsequent frame significantly improves visual quality, making brushstrokes appear to move naturally with objects during camera pans.
  • The method outperforms both independent frame-by-frame stylization and initialization using the previous rendered frame, which causes textures to appear fixed to the frame and 'melt' during motion.
  • The approach successfully handles gradual scene changes, such as a surface being revealed by a moving occluder, maintaining consistent stylization.
  • When applied to special effects or scenes with complex lighting, the method can produce warping artifacts, indicating limitations in handling dynamic lighting or transparency.
  • The use of histogram matching on the style image improves results in scenes with varying illumination, reducing inconsistencies caused by lighting differences.
  • The authors observe that while statistical consistency is improved, artistic intent often benefits from some frame-to-frame variation, suggesting a trade-off between coherence and expressiveness.

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.