Skip to content

DeepFake Detection Tool, hosted on a Django Framework with a Self-Trained Vision Transformers model.

License

Notifications You must be signed in to change notification settings

Polymath-Saksh/deepfake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepFake-Analysis Hugging Face Django Python

Introduction

This repository contains the AI Ambassadors Project of Microsoft Learn Student Ambassadors. The project is about DeepFake Image Detection Model. The project is divided into two parts:

Development of a DeepFake Image Detection Model

  • Inspired by "An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale" by Dosovitskiy et al. (2020) The concerned Vision Transformer model is used for transfer learning on the DeepFake Detection Dataset.

  • A subset of Open Forensics Dataset (Deepfake Dataset) consisting of approx. 1.9 million images is used for training the model. The dataset is divided into 3 sets: Training, Validation, and Testing Sets with a 14:4:1 ratio. Thereby, making the use of Transfer Learning for training the model to work on detecting DeepFake Images.

  • The model trained is then deployed onto Hugging Face Model Hub for public use. The model is available for use at: DeepFake Image Detection Model

Model Statistics

  • Achieved an accuracy of 97% on the Testing Set.
  • Model trained on Azure ML Studio notebooks, with a compute VM of 16 Core, 128 GB RAM for a period of 6 hours.
  • The model is available for use at: DeepFake Image Detection Model

Web Application

  • The Web Application is developed using Django Framework.
  • The Web Application retrieves the image from the user via a user-friendly interface. During deployment, the model is retrieved from the Hugging Face Model Hub via the API, hence the user does not need to download the model in the concerned project directory.
  • The Web Application can be further deployed on Azure App Services for public use.

App Demo

Deepfake.Analysis.Demo.mp4

Microsoft Reactor Presentation

Combating Digitally Altered Images - Deepfake Detection

Presentation

The presentation for the project can be found at: Team DeepShield - Deepfake Analysis Presentation. (Access restricted to Microsoft Learn Student Ambassadors)

Installation and Usage

  • Clone the repository using the following command:

    git clone https://github.com/Polymath-Saksh/deepfake.git
  • Install the required dependencies using the following command:

    pip install -r requirements.txt
  • Run the Django Server using the following command:

    python manage.py runserver

Contributors

Acknowledgements

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

DeepFake Detection Tool, hosted on a Django Framework with a Self-Trained Vision Transformers model.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •