从短视频片段到实时流:面向视频换脸的身份感知监督与上下文高效生成
研究论文 · 2026/10/21
视频换脸旨在将参考身份迁移到目标视频,同时保留其其他属性和运动。尽管基于参考引导的流匹配方法取得了进展,但在长视频流上同时实现忠实的身份迁移、高保真度和实时生成仍具挑战性。为此,我们重新思考了参考引导视频换脸的任务特定结构。首先,换脸仅改变身份而保留大部分视觉内容,但流匹配监督对这些变化不敏感。因此,我们开发了联合重建-身份损失(Joint Rec-ID Loss),根据噪声水平平衡显式身份监督和潜在重建。其次,目标视频已提供未编辑的属性和时间动态,通过人脸感兴趣区域生成(Face-RoI Generation)和短上下文展开训练(Short-Context Rollout Training),能够以更少的空间令牌和更短的时间上下文进行生成。整合这些设计,我们提出了StreamingSwap,一个用于实时流视频换脸的参考引导流匹配框架。我们还引入了HumanFaceVid,包含1000小时的电影训练数据和200个短视频及200个长视频的评估集。实验表明,我们的方法在单块NVIDIA RTX 4090 GPU上以20 FPS实现具有竞争力的身份迁移和视觉质量,并在长达10分钟的视频上稳定生成。项目网页:https://aim-uofa.github.io/StreamingSwap/
该论文解决了视频换脸中实时流生成与高质量身份迁移的难题,提出了有效的监督和效率优化方法,并构建了新数据集,对实时视频编辑领域有重要推进作用。
Video face swapping transfers the reference identity to a target video while preserving its other attributes and motion. Despite recent progress in reference-guided flow-based methods, jointly achieving faithful identity transfer, high fidelity, and real-time generation over long video streams remains challenging. To address this challenge, we rethink the task-specific structure of reference-guided video face swapping. First, face swapping changes only identity while preserving most visual content, yet flow-matching supervision is weakly sensitive to these changes. We therefore develop Joint Rec-ID Loss, which balances explicit identity supervision and latent reconstruction according to the noise level. Second, the target video already provides non-edited attributes and temporal dynamics, enabling generation with fewer spatial tokens and shorter temporal contexts through Face-RoI Generation and Short-Context Rollout Training. By integrating these designs, we propose StreamingSwap, a reference-guided flow-matching framework for real-time streaming video face swapping. We also introduce HumanFaceVid, comprising 1,000 hours of cinematic training data and evaluation sets of 200 short and 200 long videos. Experiments demonstrate that our method achieves competitive identity transfer and visual quality at 20 FPS on a single NVIDIA RTX 4090 GPU, with stable generation over videos up to 10 minutes long. Project webpage: https://aim-uofa.github.io/StreamingSwap/