This repo is an enhanced toolkit with some updated methods processing original FaceForensics++ dataset.
The FaceForensics++ dataset is designed for facial manipulation detection, offering real and altered videos using methods like FaceSwap and DeepFakes. It’s widely used to benchmark deepfake detection models.
There exists some awkward problems when you first dive into the field ofDeepfake Detection
, especially Deepfake binary mask location
, like me🫠🫠
- How to download original dataset completely and uninterruptedly.
- How to extract frames and masks form videos which can be interrupted and finally no-repeated.
- How to convert extracted masks to binary masks
Note
These functions maybe unobtrusive, but they can greatly increase your efficiency and improve your workflow progress!
There are 4 files totally.
Tip
- To run them on your own machine, you will need to modify args_config.
- Just run it!
- download dataset script. download-FaceForensics.py
- extract frames from videos (no repeat). extract_frame.py
- extract binary masks from mask_videos (no repeat). extract_frame.py
- convert a mask to binary mask. generate_binary_mask.py
Many thanks to the FaceForensics++ dateset for contributing to the field of Deepfake Detection!
You can get original methods on their official repository FaceForensics.