Welcome to the official repository of Face Forgery Detection via Reconstructing Authentic-like Frequency.
-
To accelerate the training process, it is strongly recommended to crop faces from each image or frame of the video and save them as individual image files in advance.
-
Download the pretrained weight of Xception.
wget http://data.lip6.fr/cadene/pretrainedmodels/xception-b5690688.pth
-
Install the required packages.
pip install -r requirements.txt
-
Download the following datasets or prepare your own dataset and modify
./ffdataset.py
if necessary:
python3 train.py --log_dir LOG_DIR
Make sure to replace LOG_DIR
with the desired directory path.
Your contributions are highly appreciated! If you have any suggestions, optimizations, or improvements for this project, please feel free to open an issue or submit a pull request. We welcome any feedback or ideas to make this project better.
This work was supported in part by the Cybersecurity Center of Excellence (CCoE) program under National Science and Technology Council (NSTC), Taiwan.