Awesome
[NeruIPS 2024] Lips Are Lying: Spotting the Temporal Inconsistency between Audio and Visual in Lip-syncing DeepFakes
<a href='https://arxiv.org/abs/2401.15668v2'><img alt="Static Badge" src="https://img.shields.io/badge/arXiv-2401.15668v2-grey?style=flat&labelColor=red"> <a href='https://drive.google.com/file/d/1fEiUo22GBSnWD7nfEwDW86Eiza-pOEJm/view?usp=share_link'><img alt="Static Badge" src="https://img.shields.io/badge/dataset-AVLips-grey?style=flat&labelColor=blue">
Abstract. In recent years, DeepFake technology has achieved unprecedented success in high-quality video synthesis, but these methods also pose potential and severe security threats to humanity. DeepFake can be bifurcated into entertainment applications like face swapping and illicit uses such as lip-syncing fraud. However, lip-forgery videos, which neither change identity nor have discernible visual artifacts, present a formidable challenge to existing DeepFake detection methods. Our preliminary experiments have shown that the effectiveness of the existing methods often drastically decrease or even fail when tackling lip-syncing videos. In this paper, for the first time, we propose a novel approach dedicated to lip-forgery identification that exploits the inconsistency between lip movements and audio signals. We also mimic human natural cognition by capturing subtle biological links between lips and head regions to boost accuracy. To better illustrate the effectiveness and advances of our proposed method, we create a high-quality LipSync dataset, AVLips, by employing the state-of-the-art lip generators. We hope this high-quality and diverse dataset could be well served the further research on this challenging and interesting field. Experimental results show that our approach gives an average accuracy of more than 95.3% in spotting lip-syncing videos, significantly outperforming the baselines. Extensive experiments demonstrate the capability to tackle deepfakes and the robustness in surviving diverse input transformations. Our method achieves an accuracy of up to 90.2% in real-world scenarios (e.g., WeChat video call) and shows its powerful capabilities in real scenario deployment.
π₯ AVLips: A high-quality audio-visual dataset for lipsync detection
To the best of our knowledge, the majority of public DeepFake datasets consist solely of videos or images, with no specialized one specifically dedicated to LipSync detection available. To fill this gap, we construct a high-quality Audio-Visual Lip-syncing Dataset, AVLips, which contains up to 340,000 audio-visual samples generated by several SOTA LipSync methods. The workflow is demonstrated below.
High quality. We employed a combination of static MakeItTalk and dynamic Wav2Lip, TalkLip, SadTalker generation methods to simulate realistic lip movements. These methods are widely recognized as high-quality work, capable of generating high-resolution videos while ensuring accurate lip movements. We applied a noise reduction algorithm to all audio samples before synthesis to reduce irrelevant background noise, ensuring the models can focus on speech content.
Diversity. Our dataset encompasses a wide range of scenarios, covering not only well-known public datasets but also real-world data. Our aim is for this collection to act as a catalyst for advancing real-time forgery detection. To better simulate the nuances of real-world conditions, we have employed six perturbation techniques β saturation, contrast, compression, Gaussian noise, Gaussian blur, and pixelation β at various degrees, thus ensuring the dataset's realism and practical relevance.
Download Link: AVLips v1.0
News: The AVLips v2.0 is coming soon! (MORE forgery methods and data.)
<div align=center><img src="README.assets/dataset.png" width="300"></div>:gear: βRequirements
conda create -n LipFD python==3.10
conda activate LipFD
pip install -r requirements.txt
:wrench: Dataset Preprocess
You can skip this section, if you only want to perform validation.
Download AVLips dataset and put it in the root directory.
AVLips dataset folder structure.
AVLips
βββ 0_real
βΒ Β βββ 0.mp4
βΒ Β ...
βββ 1_fake
βΒ Β βββ 0.mp4
βΒ Β βββ ...
βββ wav
βββ 0_real
βΒ Β βββ 0.wav
βΒ Β βββ ...
βββ 1_fake
βββ 0.wav
βββ ...
Preprocess the dataset for training.
python preprocess.py
Preprocessed AVLips dataset folder structure.
datasets
βββ AVLips
Β Β βββ 0_real
Β Β βΒ Β βββ 0_0.png
Β Β βΒ Β βββ ...
Β Β βββ 1_fake
Β Β βββ 0_0.png
Β Β βββ ...
The data sample is showed as follow, and the fully processed dataset is approximately 60 GB.
:tada: Validation
-
Download our pertained weights and save it in to
checkpoints/ckpt.pth
. -
Download validation set and extract it into
datasets/val
.
python validate.py --real_list_path ./datasets/val/0_real --fake_list_path ./datasets/val/1_fake --ckpt ./checkpoints/ckpt.pth
:rocket: Train
First, edit --fake_list_path
and --real_list_path
in options/base_options.py
.
Then, run python train.py
.
:mailbox: Citation
If you find this repo useful for your research, please consider citing our work:
@article{liu2024lips,
title={Lips Are Lying: Spotting the Temporal Inconsistency between Audio and Visual in Lip-Syncing DeepFakes},
author={Liu, Weifeng and She, Tianyi and Liu, Jiawei and Wang, Run and Yao, Dongyu and Liang, Ziyou},
journal={arXiv preprint arXiv:2401.15668},
year={2024}
}