[论文解读] DynamicFace: High-Quality and Consistent Video Face Swapping using Composable 3D Facial Priors
DynamicFace 使用扩散模型和四个解耦的三维先验人脸条件以及时间层,实现高质量、身份一致的视频和图像人脸替换。通过 Face Former 与 ReferenceNet 注入身份,并采用时间模块实现视频连贯性。
Face swapping transfers the identity of a source face to a target face while retaining the attributes like expression, pose, hair, and background of the target face. Advanced face swapping methods have achieved attractive results. However, these methods often inadvertently transfer identity information from the target face, compromising expression-related details and accurate identity. We propose a novel method DynamicFace that leverages the power of diffusion model and plug-and-play temporal layers for video face swapping. First, we introduce four fine-grained face conditions using 3D facial priors. All conditions are designed to be disentangled from each other for precise and unique control. Then, we adopt Face Former and ReferenceNet for high-level and detailed identity injection. Through experiments on the FF++ dataset, we demonstrate that our method achieves state-of-the-art results in face swapping, showcasing superior image quality, identity preservation, and expression accuracy. Besides, our method could be easily transferred to video domain with temporal attention layer. Our code and results will be available on the project page: https://dynamic-face.github.io/
研究动机与目标
- 推动鲁棒的人脸替换,在准确传达目标动作和非身份属性(背景、光照、姿态、表情)的同时,保持源身份。
- 提出基于3D先验的四个解耦人脸条件,为替换提供精准、独立的引导。
- 通过专用模块(Face Former 与 ReferenceNet)和扩散模型引导,实现高质量的身份注入。
- 将该方法扩展到视频,通过引入时序注意力提高帧间的一致性。
提出的方法
- 利用 Stable Diffusion,结合四个可组合的人脸条件:背景、形状感知法线图、与表情相关的关键点、以及去身份的UV纹理图。
- 通过 3DDFA-V3 的 3D先验,将目标帧的姿态/表情与源身份参数对齐,并据此渲染相应的二维条件。
- 实现 Mixture-of-Guiders 作为四个条件的轻量级引导,随后使用带自注意力的融合网络进行组合。
- 引入 Face Former,通过人脸嵌入向量和查询变换器进行高级别的身份注入与语义整合。
- 引入 ReferenceNet,对基础 UNet 的可训练拷贝,具备空间注意力以保留源脸纹理细节。
- 添加时序注意力(类似 AnimateDiff 的灵感),在保持身份与动作一致性的同时扩展到视频。
- 分两阶段训练:第一阶段,使扩散先验适应带有空间模块的人脸;第二阶段微调时序层以实现视频连贯性。
实验结果
研究问题
- RQ1一个基于扩散的面部替换框架是否能够解耦身份、姿态、表情、背景与光照,从而提升图像与视频的质量?
- RQ2如何利用3D人脸先验将源身份与目标动作对齐,同时保持非身份属性?
- RQ3专用身份注入模块(Face Former 与 ReferenceNet)是否在不牺牲运动保真度的前提下提升身份保留?
- RQ4引入时序注意力是否提升视频人脸替换的时序一致性?
- RQ5在标准基准(FF++ 数据集)上,DynamicFace 与先前的扩散式和GAN基方法在身份保持、姿态/表情准确性和背景保真度方面有何对比?
主要发现
- DynamicFace 在 FF++ 上在身份保留、姿态准确性以及表情/嘴部/眼睛的一致性方面实现了现有最优性能。
- 四个可组合的人脸条件提供了解耦的、任务专用的引导,改进了形状对齐、光照一致性和环境背景处理。
- Face Former 与 ReferenceNet 共同提升了在表情和姿态变化下的身份保留与纹理保真度。
- 时序注意力模块提升了视频级别的时序一致性,保持跨帧的身份与动作连贯性。
- 定量结果显示在身份检索、表达/嘴部/眼部误差等方面优于若干基线方法(如 Deepfakes、SimSwap、Face Adapter)。
- 消融研究证实每个条件和两个身份注入模块对性能的贡献,运动模块对时序稳定性尤为关键。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。