DeepFake Classification

This repository was based on the FaceForensics++ dataset. Besides the full image models, all models were trained on slightly enlarged face crops with a scale factor of 1.3.

You can find my trained models under this link.

Setup:

  • Install Anaconda Env with Python 3.7
  • Install required modules via requirement.txt file
  • Run detection from a single video file or folder

Install / Settings / Run

>> conda create -n deepfake python=3.7
>> pip install -r requirement.txt
>> python detect_from_video.py -i 1.mp4 -m full_c40.p

Details

Params to run script:

python detect_from_video.py
-i <path to input video or folder of videos with extenstion '.mp4' or '.avi'>
-m <path to model file, default is imagenet model
-o <path to output folder, will contain output video(s)

from the classification folder. Enable cuda with --cuda or see parameters with python detect_from_video.py -h.