Realistic and Efficient Face Swapping: A Unified Approach with Diffusion Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Baliah, Sanoojan, Lin, Qinliang, Liao, Shengcai, Liang, Xiaodan, Khan, Muhammad Haris
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916389250400256
author Baliah, Sanoojan
Lin, Qinliang
Liao, Shengcai
Liang, Xiaodan
Khan, Muhammad Haris
author_facet Baliah, Sanoojan
Lin, Qinliang
Liao, Shengcai
Liang, Xiaodan
Khan, Muhammad Haris
contents Despite promising progress in face swapping task, realistic swapped images remain elusive, often marred by artifacts, particularly in scenarios involving high pose variation, color differences, and occlusion. To address these issues, we propose a novel approach that better harnesses diffusion models for face-swapping by making following core contributions. (a) We propose to re-frame the face-swapping task as a self-supervised, train-time inpainting problem, enhancing the identity transfer while blending with the target image. (b) We introduce a multi-step Denoising Diffusion Implicit Model (DDIM) sampling during training, reinforcing identity and perceptual similarities. (c) Third, we introduce CLIP feature disentanglement to extract pose, expression, and lighting information from the target image, improving fidelity. (d) Further, we introduce a mask shuffling technique during inpainting training, which allows us to create a so-called universal model for swapping, with an additional feature of head swapping. Ours can swap hair and even accessories, beyond traditional face swapping. Unlike prior works reliant on multiple off-the-shelf models, ours is a relatively unified approach and so it is resilient to errors in other off-the-shelf models. Extensive experiments on FFHQ and CelebA datasets validate the efficacy and robustness of our approach, showcasing high-fidelity, realistic face-swapping with minimal inference time. Our code is available at https://github.com/Sanoojan/REFace.
format Preprint
id arxiv_https___arxiv_org_abs_2409_07269
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Realistic and Efficient Face Swapping: A Unified Approach with Diffusion Models
Baliah, Sanoojan
Lin, Qinliang
Liao, Shengcai
Liang, Xiaodan
Khan, Muhammad Haris
Computer Vision and Pattern Recognition
Despite promising progress in face swapping task, realistic swapped images remain elusive, often marred by artifacts, particularly in scenarios involving high pose variation, color differences, and occlusion. To address these issues, we propose a novel approach that better harnesses diffusion models for face-swapping by making following core contributions. (a) We propose to re-frame the face-swapping task as a self-supervised, train-time inpainting problem, enhancing the identity transfer while blending with the target image. (b) We introduce a multi-step Denoising Diffusion Implicit Model (DDIM) sampling during training, reinforcing identity and perceptual similarities. (c) Third, we introduce CLIP feature disentanglement to extract pose, expression, and lighting information from the target image, improving fidelity. (d) Further, we introduce a mask shuffling technique during inpainting training, which allows us to create a so-called universal model for swapping, with an additional feature of head swapping. Ours can swap hair and even accessories, beyond traditional face swapping. Unlike prior works reliant on multiple off-the-shelf models, ours is a relatively unified approach and so it is resilient to errors in other off-the-shelf models. Extensive experiments on FFHQ and CelebA datasets validate the efficacy and robustness of our approach, showcasing high-fidelity, realistic face-swapping with minimal inference time. Our code is available at https://github.com/Sanoojan/REFace.
title Realistic and Efficient Face Swapping: A Unified Approach with Diffusion Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2409.07269