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:
- 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.
- 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.
- 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.
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