GithubHelp home page GithubHelp logo

haidas618 / deepfake_detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huangshiyu13/deepfake_detection

0.0 0.0 0.0 1.29 MB

detect deepfake images(AI换脸检测), Pytorch

License: MIT License

Python 100.00%

deepfake_detection's Introduction

Deepfake Detection

Description

Use deep models to detect fake images.

We trained an EfficientNet model to detect deepfake images. Check out this repo to know more about deepfake images.

  • Real image:

  • Fake image:

Installation

pip install -r requirements.txt

  • Pytroch

Usage

  • test images using trained model

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:

python test_images.py ./test_images/0.png ./test_images/1.jpeg

  • train on your own dataset

The training code is to be released.

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 and others},
  howpublished={\url{https://github.com/huangshiyu13/deepfake_detection}},
  year={2020}
}

Author

Shiyu Huang ([email protected])

If you want to train or test your dataset using this code, please feel free to contact me.

Acknowledgement

This code is based on https://github.com/rwightman/pytorch-image-models

deepfake_detection's People

Contributors

huangshiyu13 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.