Giter VIP home page Giter VIP logo

programmist's Introduction

Programmist

Final Project for CSCI 1470 Deep Learning - Face-Aging with Identity Preserved Conditional GANs

We are implementing the Face Aging With Identity-Preserved Conditional Generative Adversarial Networks paper by Xu Tang, Zongwei Wang, Weixin Luo and Shenghua Gao. We will use GANs to extract low-level features from faces of different ages and encode the features to our images. This is a generative model with a face-aging objective.

Face-aging is a new and exciting field in Deep Learning. With the rising popularity of FaceApp and people’s concerns about privacy, we were drawn to implement our version of an aging-app and think over issues of data privacy, deep fakes and identity theft.

How to Train (Cross-Age Celebrity Dataset)

  1. Run python download_data.py to download the the Cross-Age Celebrity Dataset metadata(817K) and Face images(3.5G). These will be downloaded and unzipped in the data\ directory.
  2. To train the model from scratch, run python3 main.py
  3. To test the model and get results from a saved model, run python3 main.py mode=='test'

Environment

We have used Google's Deep Learning VM with Pytorch framework to train with GPU. To run locally, follow the directions in setup conda section.

Navigating GCP

python
from zipfile import ZipFile
zip_file = ZipFile('path_to_file/t.zip', 'r')
zip_file.extractall('path_to_extract_folder')

Setup conda

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

bash Miniconda3-latest-Linux-x86_64.sh

rm Miniconda3-latest-Linux-x86_64.sh

source .bashrc

Installation

conda env create -f environment_gpu.yml

Update

conda env update -f environment_gpu.yml

Activate/Deactivate

conda activate clsgan

conda deactivate

programmist's People

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.