本文提出轻量级换脸框架 LatentSwap,通过随机潜码和三项损失训练潜码映射,无需额外数据集,即可借助 StyleGAN2 等生成器生成高真实感人脸,并支持 3D 感知换脸扩展。
摘要:
我们提出了 LatentSwap,这是一个简单的换脸框架,可为给定生成器生成换脸潜码。利用随机采样的潜码,我们的框架非常轻量,除使用预训练模型外不需要数据集,训练过程也快速而直接。损失目标仅包含三项,却能有效控制源图像与目标图像之间的换脸结果。通过接入一个独立于该模型的预训练 GAN 反演模型,并使用 StyleGAN2 生成器,我们的模型可生成照片级真实感的高分辨率图像,效果可与其他具有竞争力的换脸模型相媲美。我们表明,该框架适用于 StyleNeRF 等其他生成器,为 3D 感知换脸铺平了道路,并且还兼容其他基于 StyleGAN2 生成器的下游任务。源代码和模型可在 https://github.com/usingcolor/LatentSwap 获取。
英文摘要:
We propose LatentSwap, a simple face swapping framework generating a face swap latent code of a given generator. Utilizing randomly sampled latent codes, our framework is light and does not require datasets besides employing the pre-trained models, with the training procedure also being fast and straightforward. The loss objective consists of only three terms, and can effectively control the face swap results between source and target images. By attaching a pre-trained GAN inversion model independent to the model and using the StyleGAN2 generator, our model produces photorealistic and high-resolution images comparable to other competitive face swap models. We show that our framework is applicable to other generators such as StyleNeRF, paving a way to 3D-aware face swapping and is also compatible with other downstream StyleGAN2 generator tasks. The source code and models can be found at \url{https://github.com/usingcolor/LatentSwap}.
Fine-Grained Face Swapping via Regional GAN Inversion
Tencent AI Lab(腾讯人工智能实验室);Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);South China University of Technology(华南理工大学)
我们提出了一个新的范例高保真人脸交换,忠实地保留所需的微妙的几何形状和纹理细节。我们重新思考人脸交换的角度来看,细粒度的人脸编辑,\textit{i.e., ``editing for swapping'' (E4S)},并提出了一个框架,是基于明确的解开的形状和纹理的面部组件。遵循E4S原则,我们的框架可以实现面部特征的全局和局部交换,以及控制用户指定的部分交换量。此外,E4S范例固有地能够通过面罩来处理面部遮挡。在我们的系统的核心在于一个新的区域GAN反演(RGI)方法,它允许明确的形状和纹理的解纠缠。它还允许在StyleGAN的潜在空间中执行人脸交换。具体来说,我们设计了一个多尺度的面具引导编码器,每个面部组件的纹理投影到区域风格代码。我们还设计了一个掩码引导的注入模块来操纵的特征图与样式代码。在此基础上,将人脸交换转化为一个简化的风格和掩码交换问题。与当前最先进的方法进行了大量的实验和比较,证明了我们的方法在保留纹理和形状细节以及处理高分辨率图像方面的优越性。项目页面为http://e4s2022.github.io
Safeguarding Facial Identity against Diffusion-based Face Swapping via Cascading Pathway Disruption
MoE Key Laboratory of Information Technology, Sun Yat-sen University, Guangzhou, China(信息科技教育部重点实验室,中山大学,广州,中国);State Key Laboratory of Mathematical Engineering and Advanced Computing, Zhengzhou, China(数学工程与先进计算国家重点实验室,郑州,中国)
E4S: Fine-grained Face Swapping via Editing With Regional GAN Inversion
Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);South China University of Technology(华南理工大学);The University of Hong Kong(香港大学);Tencent AI Lab(腾讯AI实验室)
MoE Key Lab of Artificial Intelligence, AI Institute, Shanghai Jiao Tong University(上海交通大学人工智能研究院教育部人工智能重点实验室);vivo Mobile Communication Co., Ltd.(维沃移动通信有限公司)