We present a novel paradigm for high-fidelity face swapping that faithfully preserves the desired subtle geometry and texture details. We rethink face swapping from the perspective of fine-grained face editing, \textit{i.e., ``editing for swapping'' (E4S)}, and propose a framework that is based on the explicit disentanglement of the shape and texture of facial components. Following the E4S principle, our framework enables both global and local swapping of facial features, as well as controlling the amount of partial swapping specified by the user. Furthermore, the E4S paradigm is inherently capable of handling facial occlusions by means of facial masks. At the core of our system lies a novel Regional GAN Inversion (RGI) method, which allows the explicit disentanglement of shape and texture. It also allows face swapping to be performed in the latent space of StyleGAN. Specifically, we design a multi-scale mask-guided encoder to project the texture of each facial component into regional style codes. We also design a mask-guided injection module to manipulate the feature maps with the style codes. Based on the disentanglement, face swapping is reformulated as a simplified problem of style and mask swapping. Extensive experiments and comparisons with current state-of-the-art methods demonstrate the superiority of our approach in preserving texture and shape details, as well as working with high resolution images at 1024$\times$1024.
翻译:我们提出了一个关于高不贞度面部转换的新模式,忠实地保存了理想的微妙几何和纹理细节。我们重新思考了从美化面部编辑、\ textit{ e. 即“编辑换换”(E4S)的角度对面面部的转换面部,并提出了一个基于面部构件形状和纹理明显分解的框架。按照E4S原则,我们的框架既能在全球和地方互换面部特征,也能控制用户指定的部分互换数量。此外,E4S 模式本质上能够用面部面部面部面部面部遮罩处理面部隔离问题。我们系统的核心是新型的区域GAN Inversion(RGI)方法,它允许面部和纹理的形状和纹理明显分解。根据StyGAN的潜伏空间,我们设计了一个多级面部面部和本地面部图像互换面部,将每个面部部分的文本转换成区域样式代码。我们还设计了一种面部制式的系统化模型,在简化版面部图型上,将一个面部变换为正式的模版的缩缩缩缩版模型,以演示模型,将模型的模制版式图解。