GithubHelp home page GithubHelp logo

iamwooki / beautygan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kairess/beautygan

0.0 1.0 0.0 13.63 MB

transfer the makeup style of a reference face image to a non-makeup face

Python 0.05% Jupyter Notebook 99.95%

beautygan's Introduction

issues

  1. macOS Catalina, linecache.py
#linecache.py
def getlines(filename, module_globals=None):
    """Get the lines for a Python source file from the cache.
    Update the cache if it doesn't contain an entry for this file already."""

    if filename in cache:
        entry = cache[filename]
        if len(entry) != 1:
            return cache[filename][2]

    try:
        if module_globals is None:
            #변경부분
            v = sys.modules.copy()
            for mod in v:
            #변경종료
                if getattr(mod, '__file__', None) == filename:
                    module_globals = mod.__dict__
                    break
        return updatecache(filename, module_globals)
    except MemoryError:
        clearcache()
        return []
  1. cv2 has no member
  • command+shift+p -> open settings (settings.json)
{
    "python.linting.pylintArgs": ["--generate-members"]
}

BeautyGAN

See test.ipynb, includes:

  • Face detection from random images
  • Facial landmarks detection
  • Face alignment
  • Inference

Introduction

BeautyGAN: Instance-level Facial Makeup Transfer with Deep Generative Adversarial Network

Website: http://liusi-group.com/projects/BeautyGAN

Essays and datasets are provided, but no open source code and no trained models are provided.

Result

Usage

  • Python3.6
  • TensorFlow 1.9

Download pretrained model

Save pretrained model to models

imgs contains 11 non-makeup, 9 makeup images

imgs/no_makeup/xfsy_0068.png default non-makeup source image

python main.py

If you need to put makeup on someone else's face image, pass through the image path. Use a proper size face images.

python main.py --no_makeup xxx.xxx

beautygan's People

Contributors

honlan avatar iamwooki avatar kairess avatar

Watchers

 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.