Sketch-based Face Editing in Video Using Identity Deformation Transfer

Long Zhao, Fangda Han, Mubbasir Kapadia, Vladimir Pavlovic, Dimitris N. Metaxas

TL;DR

This paper introduces a novel sketch-based framework for editing facial identities in monocular videos, allowing users to apply cartoonish or exaggerated deformations (like enlarging eyes or mouths) using simple 2D hand-drawn strokes. By disentangling facial identity from expression using a 3D morphable model, the system transfers 2D sketch modifications directly into 3D identity space and seamlessly propagates them across the entire video while maintaining temporal consistency and expression fidelity.

What Problem Does This Paper Address?

Traditional video face editing tools typically require complex inputs, such as reference videos from the same domain, or specialized hardware like RGB-D cameras. Furthermore, most state-of-the-art methods focus on modifying facial expressions while keeping the underlying facial identity fixed.

Modifying an actor's facial identity across an entire video—such as permanently enlarging their mouth or reshaping their eyes to match a cartoon character—is highly challenging. A person's facial appearance changes dynamically with pose and expression, making static 2D edits look unrealistic when the actor moves. While hand-drawn sketches offer an intuitive and flexible way for artists to express editing intentions, unconstrained sketches introduce significant noise and structural ambiguity (e.g., determining whether a stroke modifies an eyebrow or an eyelid). This paper tackles the challenge of accurately capturing a user's intent from a 2D sketch and propagating those identity changes consistently across a dynamic 3D video sequence.

Fig. 1. Given a video, consider the problem of modifying the actor’s facial appearance, e.g. enlarging his mouth, to match facial characters in a reference image (top-left). Our framework enables users to perform such editing operations by hand-drawn sketch. Then these modifications are propagated throughout the whole video. Top: a cartoon image for reference and key frames in a video. Bottom: the input sketches and edited frames. Note that our framework is not a caricature system. It does not transfer texture styles from cartoon images to videos, since we only focus on sketch-based identity deformation.

Methods

The authors propose an interactive pipeline that combines 3D face model fitting, sketch interpretation, and cross-dimensional deformation transfer:

  1. Face Model Fitting: The system utilizes the FaceWarehouse database to construct a blendshape face mesh for the video. It employs Displaced Dynamic Expression (DDE) regression to track the face across frames, successfully disentangling the face shape into a static 3D identity component ($I$) and time-varying expression components ($E_t$).
  2. Sketch Mapping & Landmark Deformation: To resolve sketch ambiguity, the framework treats the input sketch as an ordered sequence of strokes. It uses a Hidden Markov Model (HMM) to map these strokes to predefined facial landmark groups based on the temporal order of drawing. An energy minimization function, balancing position constraints and shape priors, then deforms the 2D landmarks to match the sketch while filtering out hand-drawn noise.
  3. Identity Deformation Transfer: A novel 2D-to-3D deformation transfer algorithm estimates the depth ($z$-value) of the modified 2D landmarks using the original 3D mesh depth. It then solves an optimization problem to transfer these local deformations directly to the 3D identity mesh, ensuring expressions remain untouched.
  4. Contour-Based Refinement (Optional): Users can optionally rotate the deformed 3D model and use a sketch-driven, hybrid line-rendering interface to refine the face from different viewpoints.
  5. Texture Re-rendering & Smoothing: The modified 3D mesh is rendered back into the video frames. A refined texture isomap synthesizes missing pixels caused by occlusion, and a Moving Least Squares (MLS) warping algorithm smoothly deforms the background around the moving face boundary to prevent artifacts.

Datasets

  • FaceWarehouse: A 3D facial expression database used to construct the core tensor, identity coefficients, and expression blendshapes.
  • YouTube Videos: The framework was evaluated on various real-world YouTube video sequences at $1280 \times 720$ resolution, featuring different actors, lighting conditions, and camera angles.
  • No new dataset benchmarks were introduced; evaluation relied on user studies and algorithmic comparisons using these video sources.

Key Insights and Ideas

  • Disentangling Identity from Expression: Isolating the static identity vector from dynamic expression vectors allows edits to be applied just once to the base identity model. The modifications then automatically and naturally adapt to all subsequent poses and expressions throughout the video.
  • Leveraging Temporal Stroke Order: Instead of relying solely on geometric proximity—which often fails with ambiguous or overlapping sketches—the system utilizes the chronological order in which a user draws features (via an HMM) to dramatically improve landmark matching accuracy.
  • Cross-Dimensional Transfer: While traditional deformation transfer techniques operate strictly within the same dimensional space (3D-to-3D), this method successfully bridges 2D user sketches to a 3D mesh by utilizing the original mesh depth as a projection constraint.

Key Results

  • Runtime Performance: The system achieves real-time performance ($\ge 25$ FPS) for standard resolution videos (360P and 480P) without background optimization, making it viable for streaming setups. For 720P HD video, it achieves 9.7 FPS (7.6 FPS with background optimization) on a standard desktop CPU.
  • User Efficiency: In a user study with 20 participants, amateur users took an average of just 3.6 minutes to complete an editing task using the sketch interface—nearly 3 times faster than using traditional 3D modeling software like MAYA (12.5 minutes). It also doubled the efficiency for professional artists (4.1 minutes vs. 9.5 minutes).
  • Temporal Consistency: Quantitative evaluation using the Content Distance metric (via OpenFace) demonstrated that the 3D-based editing pipeline maintained significantly better consistency during head rotations and expression changes compared to a standard 2D-warping baseline.

Limitations and Future Work

  • Sketch Order Dependency: The sketch-mapping algorithm assumes a logical drawing order. If an amateur user draws strokes in a highly erratic sequence, the HMM may misclassify features, requiring the user to redraw them.
  • Coarse Geometric Details: The underlying morphable model is limited to global shape deformations and cannot represent fine-grained local geometric details, such as custom wrinkles or skin textures.
  • Pose Constraints: The depth estimation technique relies on a fixed $z$-value proxy, meaning the system performs best when the user provides sketches on a relatively front-facing video frame.
  • Future Directions: The authors suggest exploring stereo editing interfaces for multi-view manipulation and integrating Generative Adversarial Networks (GANs) to achieve direct pixel-to-pixel synthesis from sketches, which could capture finer facial details.

Summary updated

Abstract

We address the problem of using hand-drawn sketches to create exaggerated deformations to faces in videos, such as enlarging the shape or modifying the position of eyes or mouth. This task is formulated as a 3D face model reconstruction and deformation problem. We first recover the facial identity and expressions from the video by fitting a face morphable model for each frame. At the same time, user's editing intention is recognized from input sketches as a set of facial modifications. Then a novel identity deformation algorithm is proposed to transfer these facial deformations from 2D space to the 3D facial identity directly while preserving the facial expressions. After an optional stage for further refining the 3D face model, these changes are propagated to the whole video with the modified identity. Both the user study and experimental results demonstrate that our sketching framework can help users effectively edit facial identities in videos, while high consistency and fidelity are ensured at the same time.
BibTeX
@article{zhao2019sketch,
  author = {Long Zhao and Fangda Han and Mubbasir Kapadia and Vladimir Pavlovic and Dimitris N. Metaxas},
  title = {{Sketch-based Face Editing in Video Using Identity Deformation Transfer}},
  journal = {Comput. Graph.},
  year = {2019},
  doi = {10.1016/j.cag.2019.01.004},
}
Figure