Learning Online Scale Transformation for Talking Head Video Generation

Fa-Ting Hong, Dan XuarXiv 2024 · DOI

Introduction

One-shot talking head generation aims to animate a single source image using the motion from a driving video. A persistent challenge in this field is scale inconsistency—discrepancies in the relative size and position of faces between the source and driving frames. When scales do not match, standard animation techniques often produce distorted results, leading to a loss of the subject's identity. Traditional solutions rely on "offline" anchor frame searches, which are computationally expensive and fail when a suitable match is unavailable in the driving sequence.

Methodology: The OSTNet Framework

To address these limitations, we introduce OSTNet (Online Scale Transformation facial reenactment Network). Unlike previous methods, OSTNet performs scale adjustment dynamically through three core components:

  1. Online Scale Transformation Module: This module utilizes facial keypoints from both source and driving images. By calculating distance vectors from keypoints to the facial centroid, the model captures structural scale. It then predicts fiducial points to warp the driving face into a "scale-rectified" version aligned with the source.
  2. Multi-layer Scale Embedding: To prevent scale information from degrading in deep layers, a latent scale code is injected into every layer of the generator, maintaining scale awareness throughout synthesis.
  3. Expression-preserved Augmentation: A novel training strategy that applies geometric distortions (stretching/squeezing) to driving images while preserving expressions, forcing the network to learn robust scale normalization.
Comparison of scale alignment methods: No alignment, Offline alignment (DaGAN), and the proposed Online Scale Alignment (OSTNet).

Experiments and Results

OSTNet was evaluated on the VoxCeleb1 and HDTF datasets, including a specialized "Different-scale Test Set" designed to challenge robustness.

Quantitative Performance

OSTNet demonstrates significant improvements over state-of-the-art models such as FOMM, DaGAN, and TPSM:

  • Scale Robustness: Under extreme scale differences, OSTNet achieved an 18% improvement in SSIM (Structural Similarity Index) compared to the previous best-performing model (TPSM).
  • Identity Preservation: The model recorded the lowest AED (Average Euclidean Distance), indicating superior retention of the source subject's unique facial features.

Qualitative Analysis

As shown in the comparison above, traditional "offline" methods or those without scale alignment often result in jittery or warped facial structures when the driving video's scale deviates from the source. OSTNet produces sharp, stable, and naturally proportioned animations by rectifying scale on-the-fly.

Conclusion

OSTNet shifts the paradigm of scale handling from slow, offline searches to an integrated, online transformation process. By treating scale as a fundamental component of identity preservation, the framework achieves state-of-the-art results in visual quality and structural accuracy. Future work will explore extending this scale-aware approach to more complex generative architectures, such as diffusion models, and improving performance in extreme profile views.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
VoxCeleb1OSTNetSSIM (%)0.820%+0.02 vs baselineTalking Head Video Generation · split: test · scale=same-scale · identity=same-identity
Source quote
L172: OSTNet (Ours) │ 0.820 │ 31.91 │ 0.176 │ 0.0335 │ 1.230 │ 0.114
VoxCeleb1OSTNetSSIM0.780+0.18 vs baselineTalking Head Video Generation · split: test · scale=different-scale · identity=same-identity · augmentation-delta=0.3
Source quote
L196: OSTNet (Ours) │ 0.780 │ 31.25 │ 0.198 │ 0.0408 │ 1.752 │ 0.142
HDTFOSTNetSSIM0.861Talking Head Video Generation · scale=same-scale · identity=same-identity · training-dataset=VoxCeleb1
Source quote
L308: Ours (OSTNet) │ 0.861 │ 33.54 │ 0.111 │ 0.0243 │ 0.992
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
VoxCeleb1DaGAN baselineSSIM (%)0.804%Talking Head Video Generation · split: test · scale=same-scale · identity=same-identity
Source quote
L170: DaGAN~\cite{hong2022depth} │ 0.804 │ 31.22 │ 0.185 │ 0.0360 │ 1.279 │ 0.117
VoxCeleb1TPSM baselineSSIM0.600Talking Head Video Generation · split: test · scale=different-scale · identity=same-identity · augmentation-delta=0.3
Source quote
L195: TPSM~\cite{zhao2022thin} │ 0.600 │ 29.43 │ 0.341 │ 0.0842 │ 4.802 │ 0.354
HDTFTPSM baselineSSIM0.860Talking Head Video Generation · scale=same-scale · identity=same-identity · training-dataset=VoxCeleb1
Source quote
L307: TPSM~\cite{zhao2022thin} │ 0.860 │ 32.85 │ 0.114 │ 0.0264 │ 1.015
BibTeX
@misc{hong2024learning,
  author = {Fa-Ting Hong and Dan Xu},
  title = {{Learning Online Scale Transformation for Talking Head Video Generation}},
  year = {2024},
  eprint = {2407.09965},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.09965},
}
Figure