Giter VIP home page Giter VIP logo

faceauth's Introduction

FaceAuth

FaceAuth is a repository housing a state-of-the-art deep learning model designed to distinguish between real human faces and artificially generated ones.

Methodology

The model was trained for 15 epochs, with early stopping in kicking in at 5, with a batch size of 32. The model was trained on RTX 3080 Ti Laptop GPU.

Installation

To install the required packages, run the following command in your terminal:

pip install -r requirements.txt

Dataset

The dataset consists of 140,000 images of real human faces and artificially generated ones. The dataset was split into training, validation, and testing sets with 100k, 20k and 20k respectively. The dataset can be downloaded from here.

Real image sample

Figure 1: A real image sample

Fake image sample

Figure 2: A fake image sample

Model Architecture

The model uses a base layer of ResNet50.

FaceAuth Model Architecture

Figure 3: FaceAuth Model Architecture

ResNet-50

Residual Networks, or ResNets, learn residual functions with reference to the layer inputs, instead of learning unreferenced functions. Instead of hoping each few stacked layers directly fit a desired underlying mapping, residual nets let these layers fit a residual mapping. They stack residual blocks ontop of each other to form network. ResNet-50, short for "Residual Network 50," is a deep convolutional neural network architecture that belongs to the ResNet family. ResNet-50 is specifically known for its depth, consisting of 50 layers, making it a relatively deep neural network. For more information, refer to the original paper.

Results

FaceAuth achieved a training accuracy of 86.56%, training loss of 21.29%, validation accuracy of 92.33%, validation loss of 21.30%, testing accuracy of 91.69%, and testing loss of 23.26%. The accuracy can be further improved by training the model for more epochs and modifying the model architecture.

FaceAuth Accuracy Plot

Figure 4: FaceAuth Accuracy Plot

FaceAuth Loss Plot

Figure 5: FaceAuth Loss Plot

faceauth's People

Contributors

rexgraystone avatar

Watchers

 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.