GithubHelp home page GithubHelp logo

pandaypr / conditional-gan-based-mask-guided-portrait-editing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cientgu/mask_guided_portrait_editing

0.0 0.0 0.0 110.19 MB

pytorch implementation of "Mask-Guided Portrait Editing with Conditional GANs"

Python 96.18% Shell 0.28% TeX 3.54%

conditional-gan-based-mask-guided-portrait-editing's Introduction

Conditional-GAN-based-Mask-Guided-Portrait-Editing

This is the pytorch implementation of "Conditional GAN based Mask Guided Portrait Editing" as a part of my research project.

Introduction

This thesis investigates geometry-guided technique using semantic facial mask as a shape guide for high-level facial component editing. The framework built in this research work leverages conditional GANs directed by supplied face masks for learning individual facial feature embeddings and the facial style. The generated images display high diversity, quality and the framework provides very good controllability on the features and the style of the generated images. The framework is capable of generating new faces from a single fixed mask, transfer style form one face to other, edit individual facial components of the image, and copy facial features from one face to another. By changing the feature extracting technique from the facial masks for training, this framework gives more control over the generated image when compared to original research work.

Citation

Citation for the original research work

S. Gu, J. Bao, H. Yang, D. Chen, F. Wen and L. Yuan, “Mask-guided portrait editing with conditional gans,” in Proceedings of the IEEE/CVF Conference on Computer
Vision and Pattern Recognition, 2019, pp. 3436–3445.

Minimum Prerequisite

  • Linux.
  • Pytorch 0.4.1.
  • Nvidia GPU: K40, M40, P100.
  • CUDA9.2 or 10.

Running code

  • download pretrained models from my google drive, put it under folder checkpoints/pretrained .
  • component editing: ./scripts/test_edit.sh
  • component transfer: ./scripts/test_edit_free_encode.sh
  • change the corresponding component file in results/pretrained/editfree_latest, then run: ./scripts/test_edit_free_generate.sh get the component transfer results.
  • training: ./scripts/train.sh

Description of the files in each directory

Thesis

  • PDF and raw data in latex zip format for the thesis documents

src

  • All the implementation files, instead of branches for each implementation all the files are saved seperately in folders as directed in the ISS student wiki.

latex files for images drawn

  • Contains the python codes for drawing figures in latex compatible format.

presentation

  • This directoy contains preseantation files in the pdf format.

media

  • Contains files for figures used in this project in pdf format generaed from libreoffice draw and also the raw libreoffice files
  • Contains all the results of the model used in this project in .png format

conditional-gan-based-mask-guided-portrait-editing's People

Contributors

pandaypr 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.