GithubHelp home page GithubHelp logo

sudhir-pradhan / babygan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tg-bomze/babygan

0.0 0.0 0.0 29.48 MB

StyleGAN-based predictor of children's faces from photos of theoretical parents.

Python 1.29% Jupyter Notebook 98.71%

babygan's Introduction

BabyGAN

logo

Check how it works online:

  • Russian Language Colab
  • English Language Colab

StyleGAN-based predictor of children's faces from photographs of theoretical parents. The latent representation is extracted from the input images, after which the algorithm mixes them in certain proportions. The neural network model is based on the GAN architecture. Using latency direction, you can change various parameters: age, face position, emotions and gender.

Based on: StyleGAN

Encoder: StyleGAN-Encoder

example1 example2 example3

Pre-train Models and dictionaries

Follow the LINK and add shortcut to Drive:

shortcut

The folder structure should be:

.
├── data                    
│   └── finetuned_resnet.h5 
├── karras2019stylegan-ffhq-1024x1024.pkl
├── shape_predictor_68_face_landmarks.dat.bz2
├── vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5
├── vgg16_zhang_perceptual.pkl
└── ...

Prerequisites

  • 64-bit Python 3.6 installation.
  • TensorFlow 1.10.0 with GPU support.
  • One or more high-end NVIDIA GPUs with at least 11GB of DRAM.
  • NVIDIA driver 391.35 or newer, CUDA toolkit 9.0 or newer, cuDNN 7.3.1 or newer.

Generating latent representation of your images

You can generate latent representations of your own images using two scripts:

  1. Create folders for photos

mkdir raw_images aligned_images

  1. Extract and align faces from images

python align_images.py raw_images/ aligned_images/

  1. Find latent representation of aligned images

python encode_images.py aligned_images/ generated_images/ latent_representations/

Usage BabyGAN

  • SOON

babygan's People

Contributors

tg-bomze 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.