jhchang / DFDC

GNU General Public License v3.0
0 stars 1 forks source link

The repo of the model that I based my project on can be found here: https://github.com/polimi-ispl/icpr2020dfdc

Notebooks with the title video prediction 6 are the latest version of the prunning models. Notebooks with the words result in the title draw graphs to visualize the results.

Below this line is the original readme of the creators of the base model

==================================================================================================================

Video Face Manipulation Detection Through Ensemble of CNNs

PWC PWC Build Status

This is the official repository of Video Face Manipulation Detection Through Ensemble of CNNs, accepted to ICPR2020 and currently available on arXiv.

We participated as the ISPL team in the Kaggle Deepfake Detection Challenge. With this implementation, we reached the 41st position over 2116 teams (top 2%) on the private leaderboard.

This repository is currently under maintenance, if you are experiencing any problems, please open an issue.

Getting started

Prerequisites

Quick run

If you just want to test the pre-trained models against your own videos or images:

The whole pipeline

You need to preprocess the datasets in order to index all the samples and extract faces. Just run the script make_dataset.sh

$ ./scripts/make_dataset.sh

Please note that we use only 32 frames per video. You can easily tweak this parameter in extract_faces.py

Celeb-DF (v2)

Altough we did not use this dataset in the paper, we provide a script index_celebdf.py to index the videos similarly to DFDC and FF++. Once you have the index, you can proceed with the pipeline starting from extract_faces.py. You can also use the split celebdf during training/testing.

Train

In train_all.sh you can find a comprehensive list of all the commands to train the models presented in the paper. Please refer to the comments in the script for hints on their usage.

Training a single model

If you want to train some models without lunching the script:

Test

In test_all.sh you can find a comprehensive list of all the commands for testing the models presented in the paper.

Pretrained weights

We also provide pretrained weights for all the architectures presented in the paper. Please refer to this Dropbox link. Each directory is named $NETWORK_$DATASET where $NETWORK is the architecture name and $DATASET is the training dataset. In each directory, you can find bestval.pth which are the best network weights according to the validation set.

Additionally, you can find Jupyter notebooks for results computations in the notebook folder.

Datasets

References

Credits

Image and Sound Processing Lab - Politecnico di Milano