• Stars
    star
    153
  • Rank 243,368 (Top 5 %)
  • Language
    Python
  • Created over 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

Give a portrait face, move the gaze up (ACM MM 2020)

GazeAnimation - Official Tensorflow Implementation

Dual In-painting Model for Unsupervised Gaze Correction and Animation in the Wild
Jichao Zhang, Jingjing Chen, Hao Tang, Wei Wang, Yan Yan, Enver Sangineto, Nicu Sebe
In ACM MM 2020.

Paper: https://arxiv.org/abs/2008.03834

Network Architecture

Dependencies

Python=3.6
pip install -r requirements.txt

Or Using Conda

-conda create -name GazeA python=3.6
-conda install tensorflow-gpu=1.9 or higher

Other packages installed by pip.

Usage

  • Clone this repo:
git clone https://github.com/zhangqianhui/GazeAnimation.git
cd GazeAnimation
  • Download the CelebAGaze dataset

    Download the tar of CelebAGaze dataset from Google Driver Linking.

    cd your_path
    tar -xvf CelebAGaze.tar

    Please edit the options.py and change your dataset path

  • VGG-16 pretrained weights

wget http://download.tensorflow.org/models/vgg_16_2016_08_28.tar.gz .
tar -xvf vgg_16_2016_08_28.tar.gz

Please edit the options.py and change your vgg path

  • Pretrained model for PAM module.

Download it from PAM Pretrained model. PLease unzip it in pam_dir and don't contain the sub-dir.

  • Train the model using command line with python
python train.py --use_sp --gpu_id='0' --exper_name='log8_7' --crop_w=50 --crop_h=30
  • Test the model
python test.py --exper_name='log8_7' --gpu_id='0' --crop_h=30 --crop_w=50 --test_sample_dir='test_sample_dir' --checkpoints='checkpoints'

Or Using scripts for training

bash scripts/train_log8_7.sh

Using scripts for testing and pretained model can be downloaded [V1]
[V2]. Unzip pretrained.zip and move files into 'experiments/checkpoints'

bash scripts/test_log8_7.sh

Experiment Result

Gaze Correction

Gaze Animation

Citation

@inproceedings{zhangGazeAnimation,
  title={Dual In-painting Model for Unsupervised Gaze Correction and Animation in the Wild},
  author={Jichao Zhang, Jingjing Chen, Hao Tang, Wei Wang, Yan Yan, Enver Sangineto, Nicu Sebe},
  booktitle={ACM MM},
  year={2020}
}

More Repositories

1

AdversarialNetsPapers

Awesome paper list with code about generative adversarial nets
6,532
star
2

CnnForAndroid

The Convolutional Neural Network(CNN) for Android
C++
253
star
3

Conditional-GAN

Tensorflow implementation for Conditional Convolutional Adversarial Networks.
Python
213
star
4

GazeAnimationV2

Unsupervised High-Resolution Portrait Gaze Correction and Animation (TIP 2022)
185
star
5

progressive_growing_of_gans_tensorflow

Tensorflow implementation of PROGRESSIVE GROWING OF GANS FOR IMPROVED QUALITY, STABILITY, AND VARIATION
Python
150
star
6

vae-gan-tensorflow

Tensorflow code of "autoencoding beyond pixels using a learned similarity metric"
Python
127
star
7

Exemplar-GAN-Eye-Inpainting-Tensorflow

Tensorflow implement of "Eye In-Painting with Exemplar Generative Adversarial Networks"
Python
95
star
8

Sparsely-Grouped-GAN

Code for paper "Sparsely Grouped Multi-task Generative Adversarial Networks for Facial Attribute Manipulation"
Python
75
star
9

Sawn

Implementation of 'Controllable Person Image Synthesis with Spatially-Adaptive Warped Normalization'
Python
55
star
10

TT-GNeRF

Official code of Training and Tuning Generative Neural Radiance Fields for Attribute-Conditional 3D-Aware Face Generation
Python
44
star
11

Self-Supervised-GANs

Tensorflow Implementation for paper "self-supervised generative adversarial networks"
Python
36
star
12

3DSGAN

The code of '3D-Aware Semantic-Guided Generative Model for Human Synthesis' (ECCV 2022)
Python
34
star
13

Residual_Image_Learning_GAN

Tensorflow implementation for Paper "Learning Residual Images for Face Attribute Manipulation"
Python
28
star
14

Swapping-Autoencoder-tf

The unofficial tensorflow implementation of Swapping Autoencoder for Deep Image Manipulation
Python
25
star
15

ICGan-tensorflow

The code of "Invertible conditional GANs for image editing" in tensorflow
Python
17
star
16

FUNIT_tensorflow

Tensorflow Implementation of FUNIT: Few-Shot Unsupervised Image-to-Image Translation
Python
7
star
17

python_tool

Jupyter Notebook
1
star
18

caffe-multilabel

caffe-for-multi-task
C++
1
star