Giter Site home page Giter Site logo

age_progression's Introduction

Age Progression/Regression by Generative Adversarial Network (GAN) Project

my-image jpg

The goal of this project is to generate an image or video of a person as they would look at a future point in time. This can be used for various purposes such as forensic investigations, personal curiosity, or creating visual effects in movies and TV shows.

Pre- requisites

  • Python 3.7.9
  • TensorFlow v2.11
  • Pytorch 1.0.

Datasets

UTKFace (Access from the github link)

Prepare the training dataset

You may use any dataset with labels of age and gender. In this demo, we use the UTKFace dataset. It is better to use aligned and cropped faces. Please save and unzip UTKFace.tar.gz to the folder data.

Data Pre-processing

  • Resizing & Normalization - We resize the images to a uniform size and normalize the pixel values to a range of between o and 1 to help converge the model better
  • Data Augmentation - Generating additional training data by applying random transformations to the original images to help the model learn better such as rotation range, zoom range, horizontal flip, fill mode.
  • Noise Reduction - This helps the learning of the model easier as it identifies patterns and helps with the ovefitting

Deployment

Based on our evaluation,the style GAN model was the best based on our visual evaluation criteria, so we deployed it. We used Streamlit to deploy the model, where users can upload images. After uploading the photo, the model provides an image as young or old, based on how the user uses the slider tool to indicate the age they want to view. This is the link to the deployed model.

Citation

  • Zhifei Zhang, Yang Song, and Hairong Qi. "Age Progression/Regression by Conditional Adversarial Autoencoder." IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
  • Elmahmudi, A., Ugail, H. A framework for facial age progression and regression using exemplar face templates. Vis Comput 37, 2023โ€“2038 (2021).
  • @inproceedings{Li2020AgePA, title={Age Progression and Regression with Spatial Attention Modules}, author={Qi Li and Yunfan Liu and Zhenan Sun}, booktitle={AAAI}, year={2020} } Liu, J., Liu, R., Li, H., & Liu, S. (2021). Face Aging GAN: Age Progression/Regression of Face Images with Identity Preserved. arXiv preprint arXiv:2102.02754.

License

GNU General Public License v3.0

๐Ÿ”— Badges

numpy pandas python tensorflow keras openCV streamlit pytorch scikitlearn

age_progression's People

Contributors

waenikakenyi avatar graceanyango avatar musasia-ryan avatar suemungai avatar bonnie10 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.