Code Monkey home page Code Monkey logo

anti-deep-fake's Introduction

Anti Deep Fake

A Deep Learning classification to detect faked videos from video inputs and render them as an exported output with annotaions of people's faces in the video as real or fake, using FaceForensics++ paper @ ~60% accuracy on HD videos ย  Tensorflow

Image

This is an implmentation of XceptionNet from the paper trained on our FaceForensics++ dataset. Besides the full image models, all models were trained on slightly enlarged face crops with a scale factor of 1.3. The models were trained using the Face2Face face tracker, though the detect_from_models.py file uses the freely available dlib face detector.

Note that we provide the trained models from our paper which have not been fine-tuned for general compressed videos. You can find our used models under this link.

Install Python 3.6

Run package installer
$ pip install -r requirements.txt

Setup:

  • Install required modules via requirement.txt file
  • Run detection from a single video file or folder with
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.

anti-deep-fake's People

Contributors

pourabkarchaudhuri avatar pournima108 avatar

Stargazers

Jay Lee avatar Hrishikesh Mane avatar

Watchers

James Cloos avatar  avatar

Forkers

rekha091216

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.