Skip to content

A Gradio-based web application that detects whether an image is a deepfake. The application uses a pre-trained InceptionResnetV1 model from the facenet_pytorch library for face recognition, and pytorch-grad-cam for visual explainability.

Notifications You must be signed in to change notification settings

saqib727/DeepFake-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Deep Fake Detection Model

This repository contains a deep learning-based model for detecting whether an image is a deep fake or not. The model analyzes facial features and artifacts commonly found in deep fake images and returns a classification result.

Features

Detects deep fake images with high accuracy. Pre-trained on a large dataset of real and fake images. Lightweight and easy to integrate into existing projects.

Requirements

Before setting up the project, ensure you have the following dependencies installed:

  • Python 3.7+
  • TensorFlow or PyTorch (depending on the model)
  • OpenCV
  • NumPy
  • Matplotlib
  • gradio
  • Pillow
  • facenet-pytorch
  • torch
  • opencv-python
  • grad-cam

Download the model files:

Download the pre-trained model from Hugging Face.

Visit the Hugging Face Model Hub and download the files of examples.zip and resnetinceptionv1_epoch_32.pth from the files there.

Run the script to detect whether the image is a deep fake:

Contributing

Contributions are welcome! Please fork the repository, create a new branch, and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Acknowledgments

Hugging Face for providing pre-trained models. The open-source community for creating and maintaining valuable tools.

About

A Gradio-based web application that detects whether an image is a deepfake. The application uses a pre-trained InceptionResnetV1 model from the facenet_pytorch library for face recognition, and pytorch-grad-cam for visual explainability.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages