Video Face Editing Using Temporal-Spatial-Smooth Warping

Xiaoyan Li, Tongliang Liu, Jiankang Deng, Dacheng Tao

TL;DR

This paper introduces Temporal-Spatial-Smooth Warping (TSSW), a novel method for video face editing that effectively tackles the problem of temporal incoherence. By jointly optimizing for spatial smoothness and temporal consistency in control lattices, TSSW enables realistic face editing across various applications like attractiveness enhancement, makeup transfer, face replacement, and expression manipulation, outperforming existing methods.

What Problem Does This Paper Address?

Editing faces in videos is a popular but challenging task. Existing methods often struggle with "temporal incoherence," meaning that when faces are edited frame by frame, the results look jerky or unnatural over time. This is primarily due to subtle inaccuracies in automatically tracking facial features (like eyebrows or mouth corners) between consecutive frames. Simply applying image-based warping techniques, which work well for single images, to videos leads to these temporal inconsistencies. While some methods try to address this with temporal averaging or manual intervention, they are either insufficient or too labor-intensive. This paper aims to solve this by creating a method that inherently preserves temporal consistency in video face editing.

Methods

The core of the proposed solution is the Temporal-Spatial-Smooth Warping (TSSW) algorithm. TSSW works by estimating "control lattices" for each frame, which essentially define how the image should be warped. The novelty lies in how these lattices are computed:

  • Joint Optimization: TSSW minimizes a novel energy function that combines three key components:
  • Data-driven term: Encourages the current frame's control lattice to be similar to the previous frame's, ensuring temporal coherence.
  • Smoothness term: Enforces spatial smoothness within the current frame's control lattice, preventing unnatural distortions within a single frame.
  • Feature point constraints: Ensures that specific facial landmarks are mapped correctly from the original to the modified frame.
  • Iterative Refinement: The algorithm iteratively updates the control lattices using a conjugate gradient method, gradually incorporating temporal information from previous frames.
  • Initialization: For the first frame, a multi-level B-spline approximation (MBA) method is used for initialization. Subsequent frames leverage the previously computed control lattices.
  • Warping Surfaces: Once the control lattices are estimated, they are used to generate warping surfaces, which then deform the original frames to create the edited output.

Datasets

The paper mentions using a "training dataset of neutral faces (101 female faces and 94 male faces)" for facial attractiveness enhancement. For makeup transfer, they use a "template dataset of ten faces with realistic makeup." The videos used for experiments are sourced from YouTube. No new datasets are introduced.

Key Insights and Ideas

  • Control Lattices are Key: The paper highlights that control lattices are crucial for generating warping surfaces and achieving temporal coherence.
  • Temporal and Spatial Coherence are Intertwined: The core insight is that by jointly optimizing for both temporal coherence (between frames) and spatial smoothness (within a frame) in the control lattices, one can achieve significantly better video face editing results.
  • Robustness to Feature Inaccuracies: TSSW is designed to be robust to subtle inaccuracies in facial feature localization, a common problem in video tracking. This reduces the need for manual refinement.
  • Unified Framework: The TSSW method provides a unified framework that can be applied to various face editing tasks, demonstrating its versatility.

Key Results

The paper demonstrates TSSW's effectiveness across four applications: facial attractiveness enhancement, makeup transfer, face replacement, and expression manipulation.

  • Qualitative Improvements: Figures and online video demonstrations show that TSSW produces more temporally coherent and spatially smoother results compared to existing methods like MBA and MLS, particularly in maintaining facial identity and details.
  • Quantitative Evaluation: A user study involving 100 participants on Amazon Mechanical Turk showed that participants preferred TSSW's results over those from methods [1], [16], [18], and [19] for various tasks. The stacked bar chart (Figure 10) indicates a significant preference for TSSW across 12 different videos.
  • Reconstruction Accuracy: Experiments on test functions (Table 2) show that TSSW achieves better reconstruction accuracy than the conventional MBA algorithm, with lower RMS errors across different datasets.

Limitations and Future Work

  • Limitations:
    • Initialization Difficulty: The reliance on an improved version of SDM for facial feature localization means that obtaining good initialization for all input videos can be challenging.
  • Suboptimal for Large Pose Variations: Due to the lack of 3D information, the method is suboptimal for significant pose variations where complex facial geometry and dynamic elements are difficult to synthesize. Performance is best when pose differences between consecutive frames are small.
  • Future Work:
    • Data-Driven Enhancement for General Pose: Extend TSSW to handle general pose variations using data-driven enhancement.
  • Improve Efficiency: Enhance the efficiency of control lattice estimation.
  • Real-time Application: Explore applying TSSW to real-time environments.

Summary updated

BibTeX
@article{li2016video,
  author = {Xiaoyan Li and Tongliang Liu and Jiankang Deng and Dacheng Tao},
  title = {{Video Face Editing Using Temporal-Spatial-Smooth Warping}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2016},
  doi = {10.1145/2819000},
}
Figure