Parametric Reshaping of Portraits in Videos

Xiangjun Tang, Wenxin Sun, Yong-Liang Yang, Xiaogang Jin · DOI

TL;DR

This paper introduces the first method for parametric reshaping of portraits in videos, allowing users to easily adjust facial features like "thinness" or "roundness" while maintaining temporal consistency and avoiding visual artifacts. It achieves this through a two-stage process of robust 3D face reconstruction and a novel content-aware video deformation technique.

What Problem Does This Paper Address?

The rise of social media has fueled a demand for easy-to-use tools to edit portrait photos and videos. While image editing for portraits is well-established, applying these techniques to videos presents a significant challenge: simply editing each frame independently leads to jarring inconsistencies and flickering, ruining the smooth flow of the video. This paper tackles the problem of creating stable, high-quality reshaped portrait videos that look natural and coherent across all frames, enabling applications from subtle beautification to more dramatic visual effects.

Methods

The proposed method operates in two main stages:

  1. Stabilized Face Reconstruction: This stage focuses on accurately reconstructing a 3D face model for each frame of the input video. It begins by estimating the rigid pose of the face in each frame. Then, it employs a multi-phase optimization strategy to jointly estimate consistent face identity and expression parameters across a sequence of "representative" frames, reducing computational cost while ensuring temporal coherence. A key innovation here is the use of a refined dense flow energy and a contour energy term to improve the robustness and accuracy of the reconstruction, especially in challenging scenarios with occlusions or jittery landmarks.
  2. Continuous Video Reshaping: Once the 3D face models are reconstructed, this stage deforms them according to a user-defined reshaping parameter (e.g., to make the face thinner or rounder). This reshaped 3D face then guides the warping of the original 2D video frames. A novel Signed Distance Function (SDF)-based dense mapping method is introduced to establish a stable correspondence between face contours before and after reshaping. This mapping is then used to deform the video frames using a content-aware warping optimization that minimizes background distortion and ensures temporal consistency. The 3D structure of the face is leveraged to correct the dense mapping and achieve smoother results.

Datasets

The paper states that the videos used for their experiments were downloaded from public datasets or YouTube websites. Specific dataset names are not detailed in the main text, but the sources of the videos are listed in the Appendix.

Key Insights and Ideas

  • The Importance of 3D for Video Consistency: Directly editing 2D video frames is inherently unstable. Leveraging a 3D face model provides a consistent representation that can be manipulated parametrically and then projected back to 2D, ensuring smoother transitions.
  • Joint Optimization for Identity: Instead of optimizing each frame independently for identity, jointly optimizing a subset of "representative" frames significantly improves temporal consistency and reduces computational burden.
  • SDF for Robust Contour Mapping: Using a Signed Distance Function to map face contours before and after reshaping is crucial for handling occlusions and ensuring that the warped regions align correctly, preventing artifacts.
  • Content-Aware Warping is Key: Simply deforming the face isn't enough; the method's success relies on a warping process that is aware of the surrounding content to minimize background distortion and maintain visual coherence.

Key Results

The method demonstrates the ability to produce visually pleasing and stable reshaped portrait videos. Users can adjust a single parameter to achieve continuous changes in facial shape (e.g., making faces thinner or rounder). The paper presents qualitative results showing successful reshaping without noticeable artifacts, outperforming existing image-based reshaping methods when applied to video sequences. Ablation studies validate the effectiveness of the proposed dense flow energy, contour energy, and the SDF-based dense mapping approach.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Visual Distortion in Extreme Reshaping: For very large shape deformations, visual distortions might still appear in regions surrounding the face. The authors suggest that video inpainting methods could be employed to further enhance these areas.
  • Inability to Model Wrinkle/Double Chin Changes: The current approach cannot directly model changes in wrinkles or the appearance of a double chin that might accompany weight gain or loss.
  • Potential for Acceleration: While the current approach is unsupervised and works "in the wild," incorporating more pre-knowledge about face shapes could potentially adapt and accelerate the method for real-time applications.

Future work could explore these areas, potentially leading to even more versatile and efficient portrait video editing tools.

Summary updated

BibTeX
@inproceedings{tang2021parametric,
  author = {Xiangjun Tang and Wenxin Sun and Yong-Liang Yang and Xiaogang Jin},
  title = {{Parametric Reshaping of Portraits in Videos}},
  booktitle = {ACM Multimedia},
  year = {2021},
  doi = {10.1145/3474085.3475334},
}
Figure