Skip to content

archarbar/DeepfakeDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepfakeDetector

Have you ever been on https://www.thispersondoesnotexist.com/? Yes. That's right. That image is not a real person. How is it possible to detect such deepfake pictures, where even us real humans can't distiguish them? Well, lucky for us, this app can! Simply upload an image and this web app will tell you if the image is real or fake.

Prerequisites

Install necessary python packages

pip install -r requirements.txt

Running the Flask Application

Run the app.py file from the root directory.

python app.py

Go to localhost:5000 to access the application from the browser of your choice.

Structure of the repository

├── README.md
├── app.py                      # Main code to run the flask app
├── doc                         # Various documentation for each deliverable
│   ├── D1
│   ├── D2
│   └── D3
├── model
│   ├── DeepfakeDetector.ipynb  # Contains the complete Jupyter notebook for training and saving the model
│   ├── metadata.csv            # Metadata used for training the model
│   ├── model.json              # Contains the model in json format
│   └── model.h5                # Contains the model weights
├── predictor.py                # Contains the predictor class
├── requirements.txt            # File containing packages needed to run the code
├── static
│   ├── css
│   │   └── main.css            # Style sheet to make the front-end prettier
│   └── js
│       └── main.js             # Javascript file handling front-end actions
└── templates
    └── index.html              # HTML file that Flask renders

About

Neural network integrated with a Flask web app to detect deepfaked pictures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors