Face Swapping Via Reverse Contrastive Learning and Explicit Identity-Attribute Disentanglement

Tao Wang,Chunhou Zheng
DOI: https://doi.org/10.1007/978-981-97-5615-5_18
2024-01-01
Abstract:Face-swapping methods have always been troubled by the poor identity consistency between swapped faces and source faces. This is primarily due to two reasons. Firstly, many methods rely on a simple cosine loss, which only considers the relationship between swapped faces and source faces, leading to insufficient generation of identity-discriminative faces. Secondly, the presence of identity information in the target face can interfere with the transfer of the source identity. To address this, we propose a new method called Reverse Contrastive Learning Swapping (RCLSwap) to enhance the identity consistency. In RCLSwap, we employ a novel technique called Reverse Contrastive Learning (RCL) to replace the cosine loss for constraining the identity information of the generated swapped face. RCL is a reverse-engineered variant of traditional contrastive learning method, which involves utilizing a fixed feature extractor and training the generator to produce samples with a more uniform distribution of identity. In both our own framework and that of others, it can provide stronger constraints. Meanwhile, we design an Explicit Decoupling Network (EDN) along with its corresponding guiding function to effectively separate and eliminate the identity information from the target face, thereby mitigating the negative influence of redundant information on synthesis of swapped face. Sufficient experimental results demonstrate the effectiveness of RCL and EDN, as well as the remarkable performance of RCLSwap in accomplishing the source identity transfer task. The model and code will be available on GitHub.
What problem does this paper attempt to address?