Skip to content

Latest commit

 

History

History
160 lines (119 loc) · 13.9 KB

README_EN.md

File metadata and controls

160 lines (119 loc) · 13.9 KB

New version of face generators based on StyleGAN2


  Here is a series of new face generators based on StyleGAN2, including yellow facechinese internet-celebrity facechinese pop-star faceworld supermodel face and cute baby face generator that are improved from the old version, and two more aesthetic generators(mixed-blood face and Asian beauty face generator)are added, along with a general face attribute editor. Having made so many generators is enough, I will no longer try to make new content related to face generators, but I will explore more practical and more satisfying generation technology to better serve people(for example you can visit Video-Auto-Wipe).
  The function of the generator is to provide various styles of face materials for us to use at will, and help save the cost of finding real people (faces).




What is the enhancement and value of the new version?

  The new version based on StyleGAN2 eliminates the occurrence of artifacts and distortion / damage in the picture, making the generation success rate close to 100% (see the randomly generated dataset in README.md), which can be used in mass generation tasks; in addition the quality of the pictures has been further improved, and the clarity has approached the dataset used in official training. I hope that this project will help film, television, advertising, games, and medical & aesthetic workers, and at the same time empower ordinary enthusiasts.
  This project is all free and open source, I hope to help friends in need. The model is for play and research use only, and commercial use is not allowed without authorization. The model's copyright belongs to: www.seeprettyface.com. If it is helpful to you, please sponsor at the bottom ~



Effect preview

Chinese Internet-celebrity Face Generator

  Image text

  Image text

Chinese Pop-star Face Generator

  Image text

  Image text

World Supermodel Face Generator

  Image text

  Image text

Cute Baby Face Generator

  Image text

  Image text

Yellow Face Generator

  Image text

  Image text

Mixed-blood Face Generator(Not open-source)

  Do you know what the best looking human face looks like? I combined the chinese pop-star face generator with the world supermodel face generator in a carefully modulated ratio to create this mixed-blood face generator. The face synthesized by this generator has a unique and outstanding aesthetic style (the customer's evaluation is "Maquatte mask blends with the charm of Orientals"), which in my opinion is the best-looking face currently drawn by AI Generator . However, this generator has been bought out and is not open-source.
  Image text

  Image text


Asian Beauty Face Generator(Not open-source)

  The interesting thing is that after I open-source the above generators, a chief editor of a visual magazine found me and discussed with me about whether we can make a more recognizable and "amazing" face generator-because only if AI can surpass humans in aesthetics, generation technology can effectively impact the traditional vision industry, which means that people can get the best resources at the lowest cost. What ’s more beneficial to us is that the magazine has high-quality image material resources, and I have varied training skills, so we just cooperated to make this "Asian beauty face" generator. Some of the face materials synthesized by the generator are shown below.

Hong-Kong style beauty faces

  Image text

Japanese style beauty faces

  Image text

If you want to create a graphic, you can obtain images through this interface with a truncation rate of 0.8.



E-commercial(Not open-source)

  For cross-border e-commerce, a large number of customized model materials are required, such as black models:

Image text


Summary

  The above-mentioned generators seem to be fully available, but in fact, this technology is still far from being truly commercialized(Model-Swap-Face might be one possibility?)... If we really want to use it to impact the traditional vision industry, there are at least two problems that need to be solved: 1. Related supporting technologies need to be improved, such as face implantation, animation generation and whole body synthesis, etc.; 2.It needs to be explored that how to build a specific generation technology service system for segmented user groups.


Environment configuration

  · Both Linux and Windows are supported. Linux is recommended for performance and compatibility reasons.
  · 64-bit Python 3.6 installation. We recommend Anaconda3 with numpy 1.14.3 or newer.
  · TensorFlow 1.14 or 1.15 with GPU support. The code does not support TensorFlow 2.0.
  · On Windows, you need to use TensorFlow 1.14 — TensorFlow 1.15 will not work.
  · One or more high-end NVIDIA GPUs, NVIDIA drivers, CUDA 10.0 toolkit and cuDNN 7.5. To reproduce the results reported in the paper, you need an NVIDIA GPU with at least 16 GB of DRAM.
  · Docker users: use the provided Dockerfile to build an image with the required library dependencies.
  - On Windows, the compilation requires Microsoft Visual Studio to be in PATH. We recommend installing Visual Studio Community Edition and adding into PATH using "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat".
  My test environment configuration is: Win10, 1050Ti, CUDA 10.0, CuDNN 7.6.5, tensorflow-gpu 1.14.0, VS2017 can run perfectly.

Common problem under Windows: "Could not find MSVC/GCC/CLANG installation on this computer" How to solve it?

  When installing VS2017/VS2019, be sure to select ‘Desktop development using C ++’ (shown below) Image text   After installation, enter C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/. There will be a folder with a version number. Replace the version written in dnnlib/tflib/custom_ops.py line 29(that is the version I installed) with the corresponding version number, as shown in the figure below. Image text

Operation steps

  1.Download the corresponding model according to the address in 'networks/download model from Google Drive.txt',and place the model in the 'networks' folder
  2.Select the corresponding model and generated number in main.py and run it.



Giveaway: Attribute Editor based on StyleGAN2

  The StyleGAN2-based attribute editor (edit_photo.py) contains the same content as legacy attribute editor , containing 21 adjustable orientation for simple face attribute editing. This attribute editor applies to all generators of this project (ie yellow, internet-celebrity, star, supermodel, cute baby, mixed-blood and Asian beauty face generator) as well as official face generator.

Adjustment example


The following examples use the yellow face generator.

1.Adjust smile

Image text


2.Adjust age

Image text


3.Adjust horizontal angle

Image text


4.Adjust vertical angle

Image text


5.Adjust gender

Image text


6.Adjust beauty

Image text


7.Adjust face shape

Image text


8.Adjust eyes opening

Image text


9.Adjust whether to wear glasses

Image text


10.Add / reduce some angry emotions

Image text


11.Add / reduce some disgust emotions

Image text


12.Add / reduce some fear emotions

Image text


13.Add / reduce some happy emotions

Image text


14.Add / reduce some upset emotions

Image text


15.Add / reduce some surprise emotions

Image text


16.Add / reduce some calm emotions

Image text


17.Adjust the width of the face

Image text


18.Adjust the height of the face

Image text


19.Adjusting to the black race

Image text


20.Adjusting to the yellow race

Image text


21.Adjusting to the white race

Image text





Learn technical principles & Get training set: goto www.seeprettyface.com

Sample





Small sponsor~

Sample

A small sponsor if it helps you~