Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/a312863063/seeprettyface-generator-wanghong

这是一个用StyleGAN训练出的网红脸生成器
https://github.com/a312863063/seeprettyface-generator-wanghong

Last synced: 8 days ago
JSON representation

这是一个用StyleGAN训练出的网红脸生成器

Lists

README

        

# 网红脸生成器-V2.0


  更新:基于StyleGAN2制作的新版生成器消除了生成图片中水滴斑点和扭曲/损坏现象的出现,质量大幅提升。点此查看新版

--------------------------------------------------------------------------------------------------------------------



  注明:之前做的一些有意思的人脸生成器,现在全部开源分享出来。它的主要作用是可生成制作各类型的人脸素材,供我们任意使用且无须担心人脸版权的问题。在定制人脸上,开源的全系列生成器包括:黄种人脸生成器网红脸生成器明星脸生成器超模脸生成器萌娃脸生成器,同时人脸属性编辑器能够对所有这些生成器生成的人物进行调整和改变。

  此项目已免费开源使用,模型版权拥有者为:www.seeprettyface.com 。





  V2.0改进内容:1024px上画质提升,生成图片更大更清晰。

  这是一个用StyleGAN训练出的网红脸生成器,生成效果如下所示。


# 生成示例

##   256px单张样本
     ![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/256px_example1.png)


     ![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/256px_example2.png)


     ![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/256px_example3.png)

##   1024px单张样本
     ![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/example1.png)


     ![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/example2.png)

查看更多的1024px生成样本可以前往[这里](https://pan.baidu.com/s/1Sn6j9g-8sddIvViGEawAWQ)(提取码:3iqt),是一个含有1万张生成样本的网红脸数据集。


## 概览(有筛选)
![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/64_examples.jpg)



# 网红脸属性编辑
  人脸属性编辑支持在年龄、笑容、角度、性别和光照等23个维度上对生成人物作出调整(详细了解请前往[人脸属性编辑器](https://github.com/a312863063/seeprettyface-face_editor)处)。这儿只展示3种调整样例。
## 笑容调整
![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/edit_smile.jpg)



## 角度调整
![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/edit_angle.jpg)



## 光照调整
![Image text](https://github.com/a312863063/seeprettyface-generator-wanghong/blob/master/examples/edit_exposure.jpg)


# 运行代码
## 环境配置
  Both Linux and Windows are supported, but we strongly recommend Linux for performance and compatibility reasons.

  64-bit Python 3.6 installation. We recommend Anaconda3 with numpy 1.14.3 or newer.

  TensorFlow 1.10.0 or newer with GPU support.

  NVIDIA driver 391.35 or newer, CUDA toolkit 9.0 or newer, cuDNN 7.3.1 or newer.

## 运行步骤
  1.在model文件夹中按照txt地址下载2个模型,放在该位置

  2.在generate_wanghong.py中选择对应的模型,并运行generate_wanghong.py





## 了解技术原理 & 获取训练集:[点此进入](http://www.seeprettyface.com/)
![Image text](https://github.com/a312863063/seeprettyface/blob/master/EP001-01.png)


## 小小的赞助~


Sample


若对您有帮助可给予小小的赞助~