Giter Site home page Giter Site logo

deepfake-detection's Introduction

DeepFake-Detection

DeepFake is a technique that aims to replace the face of a targeted person with the face of someone else in a video. It first appeared in autumn 2017 as a script used to generate face-swapped adult content. We have proposed a model which can be used to detect the forged video and hence can become a great public concern recently.

Comparision between the proposed model with model used in the Research Paper

  • We used different preprocessing model than the one used in the research paper
  • Our dataset is lesser than the one originally used
  • To solve the problem of dataset we use data augmentation techniques
  • We biild our own prediction model so that one can do prediction for the video without having to understand the code, you just need to add the path
  • Well balanced dataset with each category having around 800 images

Setting up the model locally or on Colab

You can run our model locally as well on colab by uploading the .ipynb file on your colab. For running the model on your computer you will have to download dependencies. For downloading click on Requirements File. After downloading you need to run the code by opening the command propmt and pasting the following code: pip install -r /path to requirements.txt file.

Datasets and Weights file


Dataset -> This link contains dataset having videos which were later pre processed. For that you need to first login to kaggle
Preprocessed Dataset
Weights File

Model

The proposed model used Meso-4 Architecure as in the research paper MesoNet: a Compact Facial Video Forgery Detection Network and was used for prediction of Fake Videos. We build our own custom model for data preprocessing and prediction which can be found in the .ipynb file. Model trained with accuracy of over 75% on training data and over 60% on testing data. Though the model show overfitting but it can be solved by adding more data. The graphs for accuracy and loss is as follows :


The results of the prediction model when tested on unseen data is as follows. As you can see the model was able to predict correctly.



deepfake-detection's People

Contributors

harshalgadhe 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.