• Stars
    star
    494
  • Rank 89,130 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Lip and hair color editor using face parsing maps.

face-makeup.PyTorch

Lip and hair color editor using face parsing maps.

ย  Hair Lip
Original Input Original Input Original Input
Color Color Color
Color Color Color
Color Color Color

Using PyTorch 1.0 and python 3.x

Demo

Change hair and lip color:

python makeup.py --img-path imgs/116.jpg

Try to use other colors:

Change the color list in makeup.py(line 83)

colors = [[230, 50, 20], [20, 70, 180], [20, 70, 180]]

Train face parsing model (optional)

Follow this repo zllrunning/face-parsing.PyTorch