• Stars
    star
    337
  • Rank 124,455 (Top 3 %)
  • Language
    Jupyter Notebook
  • Created about 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

Face-Depixelizer

Face Depixelizer based on "PULSE: Self-Supervised Photo Upsampling via Latent Space Exploration of Generative Models" repository.
Jupyter Notebook
2,013
star
2

Face-Image-Motion-Model

Face Image Motion Model (Photo-2-Video) based on "first-order-model" repository.
Jupyter Notebook
553
star
3

StyleGAN2-Face-Modificator

Simple Encoder, Generator and Face Modificator with StyleGAN2
Jupyter Notebook
274
star
4

collection-of-notebooks

ะกollection of various notebooks
Jupyter Notebook
103
star
5

Style-Transfer-Collection

Colabs Collection of style transfer in photo and video
Jupyter Notebook
86
star
6

ENTAR

Ensemble of Neural Tools for Animations Restoration
Jupyter Notebook
63
star
7

Voice-Cloner

This is a phonemic multilingual (Russian-English) Implementation of Transfer Learning from Speaker Verification to Multispeaker Text-To-Speech Synthesis.
Jupyter Notebook
50
star
8

TimbreTransfer

Timbre Transfer using Differentiable Digital Signal Processing based on DDSP repository
Jupyter Notebook
39
star
9

Video2Anime

Converter Video to Anime. Based on "AnimeGAN" repository.
Jupyter Notebook
34
star
10

Video2Drawing

Stylizer Video to Drawing. Based on "Unpaired-Portrait-Drawing" repository.
Jupyter Notebook
26
star
11

NeuralStockPredictor

Stock Price Prediction using Convolutional and Recurrent Neural Networks on Keras (Research)
Jupyter Notebook
15
star
12

Jukebox_Colab

Colab "Jukebox: A Generative Model for Music"
Jupyter Notebook
15
star
13

Intra-Exchange-Crypto-Arbitrage

IECA - Shiny application for monitoring arbitrage situations between trading pairs inside cryptocurrency exchanges
R
14
star
14

WebCam-Face-Recognition

Simple real-time face recognition via webcam
Python
7
star