Skip to content

deepfake detection codes, distributed pytorch training (AI换脸检测)

License

Notifications You must be signed in to change notification settings

TARTRL/Deepfake_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deepfake Detection

Introduction

  • Use deep models to detect fake images.

  • Distributed training with Pytorch for deepfake detection.

  • Check out this repo to know more about deepfake images.

  • Real image:

  • Fake image:

Install

  • Python 3+
  • pip install -r requirements.txt
  • pip install .

Training

cd scripts
./train.sh

Testing

You need download the pretrained model from BaiduYun:

Download link: https://pan.baidu.com/s/16NIV5BVUITKwolQzPbj9Zw Password:r3i8

And put the model(model_half.pth.tar) under ./models. Then you can run python script as below:

cd scripts
./test.sh

Cite

Please cite our code if you use this code or our models in your own work:

@misc{deepfake_detection,
  title={Deepfake Detection},
  author={Huang, Shiyu},
  howpublished={\url{https://github.com/tartrl/deepfake_detection}},
  year={2020}
}

Releases

No releases published

Packages

No packages published