Giter Club home page Giter Club logo

face-aging-using-ipcgans's Introduction

Face Aging using IPCGANS

Face aging as we know it in today’s world has many applications such as Entertainment purpose, cross age face verification to find missing children, or missing person in general. But since it is not possible to generalize a face for different people at a particular age because of lack of organized data of same person in sequential age. So, we aim to generate an aged face in an age group instead of a particular age. We also know that there are many challenges faced in this process, foremost is to preserve the identity of a person while simultaneously ageing it.

By grouping people into different age groups, we transfer average features of target age to the face to be aged. So, we implement the Identity Preserved Conditional GANs. We further improvise by categorizing the faces based on Gender, and determine how this affects the original algorithm.

In the algorithm conditional generative adversarial network generates the target age conditioned face for input image and the identity preserving res-net model preserves the input face features.


Conditional generative adversarial model

The generative adversarial model consists of two parts, This cGAN model takes an input image and target age, and generate aged face in target age group.
To make the Adversarial network model conditional we feed the condition (age and gender) as an additional layer in the input to both discriminator and generator model.

Model

Loss Graphs

We used the preprocessed imdb-wiki dataset(60000 images) with age and gender labels for the training purpose, we take age and gender condition and classify them into 10 groups. The learning rate for IPCGAN is set to 0.001 and a batch size of 10 images is used with total of 1000000 steps for IPCGAN training.

Before and after identity preservation

It can be seen that after identity preservation model was applied the generator loss decreased which led to better results with face identity preserved.

Results

We got better results than the current existing models, as we did identity preservation and moreover we also added another condition with age that was gender.

Improvement

There is a recognizable feature difference when we give target condition as a female v/s male which confirms the improvement in the model.
Much better result could have been achieved, if a better dataset could be made keeping in mind the feature similarity in faces in the young age region by adding a large number of images in region of 10-30 years.

Further Scope

We introduced the Gender condition to shape the model to better learn the aging pattern. If a better labelled dataset with age, gender and race can be designed, we can get much better results, as race also plays a very important role in the aging pattern.

Reference: X. Tang, Z. Wang, W. Luo and S. Gao, "Face Aging with Identity-Preserved Conditional Generative Adversarial Networks," 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, 2018, pp. 7939-7947, doi: 10.1109/CVPR.2018.00828.

face-aging-using-ipcgans's People

Contributors

asifahmed0021 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.