GithubHelp home page GithubHelp logo

peterzhousz / gazecorrection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhangqianhui/gazeanimationv2

0.0 1.0 0.0 55.21 MB

GazeCorrection: Self-Guided Eye Manipulation in the wild using Self-Supervised Generative Adversarial Networks

License: Apache License 2.0

Python 100.00%

gazecorrection's Introduction

GazeCorrection:Self-Guided Eye Manipulation in the wild using Self-Supervised Generative Adversarial Networks

The code of paper GazeCorrection:Self-Guided Eye Manipulation in the wild using Self-Supervised Generative Adversarial Networks.


Paper |

Abstract

Gaze correction aims to redirect the person's gaze into the camera by manipulating the eye region, and it can be considered as a specific image resynthesis problem. Gaze correction has a wide range of applications in real life, such as taking a picture with staring at the camera. In this paper, we propose a novel method that is based on the inpainting model to learn from the face image to fill in the missing eye regions with new contents representing corrected eye gaze. Moreover, our model does not require the training dataset labeled with the specific head pose and eye angle information, thus, the training data is easy to collect. To retain the identity information of the eye region in the original input, we propose a self-guided pretrained model to learn the angle-invariance feature. Experiments show our model achieves very compelling gaze-corrected results in the wild dataset which is collected from the website and will be introduced in details.

Network Architecture

Dependencies

Usage

  • Clone this repo:

    git clone https://github.com/zhangqianhui/GazeCorrection.git
  • Download the NewGaze dataset

    Download the tar of NewGaze dataset from Google Driver Linking.

    cd your_path
    unzip NewGazeData.tar
  • Pretraining Model

    We have provided the self-guided pretraining model in directory: ./sg_pre_model_g

  • Train this model using the your parameter

    (1)Please edit the config.py file to select the proper hyper-parameters.

    (2)Change the "base_path" to "your_path" of NewGaze dataset.

    Then

    python main.py 

Experiments

  • Comparison Results

  • Experiments Results

More results(GiF)

Reference code

gazecorrection's People

Contributors

zhangqianhui avatar adeboyed avatar exponentialml avatar

Watchers

paper2code - bot 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.