Coder Social home page Coder Social logo

gan-face-generation's Introduction

Face Generator using GANs (Generative Adversarial Networks)

Model that alternatively trains a Discriminator with fake and real images and at the same time trains a Generator to create realistic faces.

Image

Data

Dataset provided at CelebFaces Attributes Dataset (CelebA)

Architecture

The project mainly consists of two parts:

Discriminator training:

We will train a Discriminator CNN with real images and with fake-generated images from the Generator then we use the combined loss from the fake and real images to do backpropagation on the Discriminator.

Discriminator
Image

Generator training:

The Generator will be getting better at generating fake images as we will use a latent vector to generate fake images, then we feed it to the Discriminator. As we want to fool the discriminator we will assume this fake images to be real. Then we do backpropagation to update the weights in the Generator.

Generator
Image

Results

Losses - 50 epoch

As this is an unsupervised method our losses will look different to a supervised one. However, the important take away from this graph is that the losses are stable in time. We can see some spikes in the Generator, this could mean it struggles to generate realistic faces because the images are pretty small (32x32). However, the discriminator seems to be doing just fine as the loss at the beginning is going down, then it stabilises. We could keep further training the network.

Fake Generated Images!
Fake Images

gan-face-generation's People

Contributors

jb-apps 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.