https://github.com/zllrunning/face-makeup.pytorch
Lip and hair color editor using face parsing maps.
https://github.com/zllrunning/face-makeup.pytorch
face-parsing lipstick makeup semantic-segmentation
Last synced: 3 months ago
JSON representation
Lip and hair color editor using face parsing maps.
- Host: GitHub
- URL: https://github.com/zllrunning/face-makeup.pytorch
- Owner: zllrunning
- License: mit
- Created: 2019-05-15T12:36:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-04T02:23:48.000Z (almost 4 years ago)
- Last Synced: 2025-03-29T10:09:13.058Z (4 months ago)
- Topics: face-parsing, lipstick, makeup, semantic-segmentation
- Language: Python
- Size: 49.6 MB
- Stars: 521
- Watchers: 9
- Forks: 152
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# face-makeup.PyTorch
Lip and hair color editor using face parsing maps.
Hair
LipOriginal Input
![]()
Color
![]()
Color
![]()
Color
![]()
### Using PyTorch 1.0 and python 3.x
## Demo
Change hair and lip color:
```Shell
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](https://github.com/zllrunning/face-parsing.PyTorch)