GithubHelp home page GithubHelp logo

empty2enrich / gannotation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from esanchezlozano/gannotation

0.0 0.0 0.0 1.24 MB

GANnotation (PyTorch): Landmark-guided face to face synthesis using GANs (And a triple consistency loss!)

License: Other

Python 91.94% Jupyter Notebook 8.06%

gannotation's Introduction

GANnotation

Face to face synthesis using Generative Adversarial Networks (model) (paper)

GANnotation example

This is the PyTorch repository for the GANnotation implementation. GANnotation is a landmark-guided face to face synthesis network that incorporates a triple consistency loss to bridge the gap between the input and target distributions

Release v1 (Nov. 2018): Demo showing the performance of our GANnotation

Release v2 (Nov. 2019): Training script is already available

Paper has been accepted to FG'2020 as an Oral presentation, see citation below.

NOTE: The re-training of the StarGAN using the triple consistency loss can be found here

License

Copyright © 2019. All Rights Reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

All the material, including source code, is made freely available for non-commercial use under the Creative Commons CC BY-NC 4.0 license. Feel free to use any of the material in your own work, as long as you give us appropriate credit by mentioning the title and author list of our paper.

All the third-party libraries (Python, PyTorch, Torchvision, Numpy, OpenCV, Visdom, Torchnet, GPUtil and SciPy) are owned by their respective authors, and must be used according to their respective licenses.

Requirements

  • Linux
  • Python 3.6 or further
  • PyTorch 1.X with torchvision
  • Numpy
  • OpenCV (cv2)

For visualization, the code above uses Visdom, through its wrapper TorchNet. You can alternatively disable the visualization by setting --visdom False when running the code. No source code would be needed in that case.

This code assigns a CUDA device directly based on availability, with GPUtil. This option can be disabled by setting --cuda to the target GPU device. Again, no need to have GPUtil installed in such case.

Test

The model can be downloaded from [https://drive.google.com/open?id=1YhpFXME3pnwy_WhgBtyhGhI1Y9WYYEOz]

Please, see the demo_gannotation.py file for usage

Contributions

All contributions are welcome

Citation

Should you use this code or the ideas from the paper, please cite the following paper:

@inproceedings{Sanchez2020Gannotation,
  title={A recurrent cycle consistency loss for progressive face-to-face synthesis},
  author={Enrique Sanchez and Michel Valstar},
  booktitle={IEEE Int'l Conf. on Automatic Face and Gesture Recognition (FG)},
  year={2020}
}

gannotation's People

Contributors

esanchezlozano avatar empty2enrich 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.