Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honlan/beautygan
transfer the makeup style of a reference face image to a non-makeup face
https://github.com/honlan/beautygan
histogram-matching makeup-transfer
Last synced: about 8 hours ago
JSON representation
transfer the makeup style of a reference face image to a non-makeup face
- Host: GitHub
- URL: https://github.com/honlan/beautygan
- Owner: Honlan
- Created: 2019-05-09T01:43:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-15T01:14:59.000Z (over 5 years ago)
- Last Synced: 2024-12-28T20:09:51.577Z (7 days ago)
- Topics: histogram-matching, makeup-transfer
- Language: Python
- Homepage:
- Size: 3.83 MB
- Stars: 657
- Watchers: 20
- Forks: 162
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BeautyGAN
### 简介
BeautyGAN: Instance-level Facial Makeup Transfer with Deep Generative Adversarial Network
官方网站:[http://liusi-group.com/projects/BeautyGAN](http://liusi-group.com/projects/BeautyGAN)
提供了论文和数据集,但是没有开源代码,也没有提供训练好的模型
### 复现效果
![](result.jpg)
### 使用方法
- Python3.6
- TensorFlow1.9下载训练好的模型
- [https://pan.baidu.com/s/1wngvgT0qzcKJ5LfLMO7m8A](https://pan.baidu.com/s/1wngvgT0qzcKJ5LfLMO7m8A),7lip
- [https://drive.google.com/drive/folders/1pgVqnF2-rnOxcUQ3SO4JwHUFTdiSe5t9](https://drive.google.com/drive/folders/1pgVqnF2-rnOxcUQ3SO4JwHUFTdiSe5t9)新建文件夹`model`,将模型文件放于其中
`imgs`中包括11张无妆图片,以及9张有妆图片
默认对`imgs/no_makeup/xfsy_0068.png`进行上妆
```
python main.py
```如果需要对其他人脸图片上妆,传入图片路径即可,推荐使用大小合适的正脸图片
```
python main.py --no_makeup xxx.xxx
```