README.md 8.9 KB
Newer Older
Q
qingqing01 已提交
1

L
LielinJiang 已提交
2
English | [简体中文](./README_cn.md)
3

L
LielinJiang 已提交
4 5
# PaddleGAN

L
LielinJiang 已提交
6
PaddleGAN provides developers with high-performance implementation of classic and SOTA Generative Adversarial Networks, and supports developers to quickly build, train and deploy GANs for academic, entertainment and industrial usage.
7

L
LielinJiang 已提交
8
GAN-Generative Adversarial Network, was praised by "the Father of Convolutional Networks"  **Yann LeCun (Yang Likun)**  as **[One of the most interesting ideas in the field of computer science in the past decade]**. It's the one research area in deep learning that AI researchers are most concerned about.
L
LielinJiang 已提交
9

Q
qingqing01 已提交
10
<div align='center'>
L
LaraStuStu 已提交
11
  <img src='./docs/imgs/ppgan.jpg'>
Q
qingqing01 已提交
12
</div>
L
LielinJiang 已提交
13

L
LaraStuStu 已提交
14
[![License](https://img.shields.io/badge/license-Apache%202-red.svg)](LICENSE)![python version](https://img.shields.io/badge/python-3.6+-orange.svg)
L
LielinJiang 已提交
15

16
## 🎪 Hot Activities
L
LaraStuStu 已提交
17

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
- 🔥 **2021.7.9-2021.9** 🔥

  **💙 AI Creation Camp 💙**

  **You can implement any abilities in PaddleGAN with Wechaty to create your own chat robot 🤖 !**

  **A plenty of gifts 🎁 waiting for you!**

  **💰First Prize: 30,000RMB**

  **🎮 Second Prize: PS5**

  **🕶 Third Prize: VR Glass**

  **🏵 Most Popular Prize: 3D Printer**

  **Still hezitating? Click here and sign up!**  **https://aistudio.baidu.com/aistudio/competition/detail/98**

- 2021.4.15~4.22

  GAN 7 Days Course Camp: Baidu Senior Research Developers help you learn the basic and advanced GAN knowledge in 7 days!

  **Courses videos and related materials: https://aistudio.baidu.com/aistudio/course/introduce/16651**

## 🚀 Recent Updates

- **💞Add Face Morphing function💞: you can perfectly merge any two faces and make the new face get any facial expressions!**

  - Tutorials: https://aistudio.baidu.com/aistudio/projectdetail/2254031

    <div align='center'>
      <img src='https://user-images.githubusercontent.com/48054808/128299870-66a73bb3-57a4-4985-aadc-8ddeab048145.gif' width='300'/>
    </div>

- **Publish a new version of First Oder Motion model by having two impressive features:**
  - High resolution 512x512 
  - Face Enhancement
  - Tutorials: https://github.com/PaddlePaddle/PaddleGAN/blob/develop/docs/zh_CN/tutorials/motion_driving.md 
Y
YixinKristy 已提交
56 57 58 59 60 61 62 63
  
- **New image translation ability--transfer photo into oil painting style:**

  - Complete tutorials for deployment: https://github.com/wzmsltw/PaintTransformer

    <div align='center'>
      <img src='https://user-images.githubusercontent.com/48054808/129904830-8b87e310-ea51-4aff-b29b-88920ee82447.png' width='700'/>
    </div>
L
LaraStuStu 已提交
64

L
LielinJiang 已提交
65
## Quick Start
L
LielinJiang 已提交
66

L
LielinJiang 已提交
67
* Please refer to the [installation document](./docs/en_US/install.md) to make sure you have installed PaddlePaddle and PaddleGAN correctly.
L
LaraStuStu 已提交
68

L
LielinJiang 已提交
69
* Get started through ppgan.app interface:
Q
qingqing01 已提交
70

L
LielinJiang 已提交
71 72 73 74 75 76 77 78
   ```python
   from ppgan.apps import RealSRPredictor
   sr = RealSRPredictor()
   sr.run("docs/imgs/monarch.png")
   ```
* More applications, please refer to [ppgan.apps apis](./docs/en_US/apis/apps.md)
* More tutorials:
  - [Data preparation](./docs/en_US/data_prepare.md)
79
  - [Training/Evaluating/Testing basic usage](./docs/en_US/get_started.md)
Q
qingqing01 已提交
80

L
LielinJiang 已提交
81
## Model Tutorial
Q
qingqing01 已提交
82

L
LielinJiang 已提交
83 84
* [Pixel2Pixel](./docs/en_US/tutorials/pix2pix_cyclegan.md)
* [CycleGAN](./docs/en_US/tutorials/pix2pix_cyclegan.md)
W
wangna11BD 已提交
85
* [LapStyle](./docs/en_US/tutorials/lap_style.md)
L
LielinJiang 已提交
86
* [PSGAN](./docs/en_US/tutorials/psgan.md)
87
* [First Order Motion Model](./docs/en_US/tutorials/motion_driving.md)
L
LielinJiang 已提交
88 89 90
* [FaceParsing](./docs/en_US/tutorials/face_parse.md)
* [AnimeGANv2](./docs/en_US/tutorials/animegan.md)
* [U-GAT-IT](./docs/en_US/tutorials/ugatit.md)
Q
qingqing01 已提交
91
* [Photo2Cartoon](./docs/en_US/tutorials/photo2cartoon.md)
L
lijianshe02 已提交
92
* [Wav2Lip](./docs/en_US/tutorials/wav2lip.md)
W
wangna11BD 已提交
93 94
* [Single Image Super Resolution(SISR)](./docs/en_US/tutorials/single_image_super_resolution.md)
* [Video Super Resolution(VSR)](./docs/en_US/tutorials/video_super_resolution.md)
L
LielinJiang 已提交
95
* [StyleGAN2](./docs/en_US/tutorials/styleganv2.md)
W
wangna11BD 已提交
96
* [Pixel2Style2Pixel](./docs/en_US/tutorials/pixel2style2pixel.md)
L
LielinJiang 已提交
97

Q
qingqing01 已提交
98

L
LielinJiang 已提交
99
## Composite Application
L
LaraStuStu 已提交
100

W
wangna11BD 已提交
101
* [Video restore](./docs/en_US/tutorials/video_restore.md)
L
LaraStuStu 已提交
102

103 104 105 106 107 108
## Online Tutorial

You can run those projects in the [AI Studio](https://aistudio.baidu.com/aistudio/projectoverview/public/1?kw=paddlegan) to learn how to use the models above:

|Online Tutorial      |    link  |
|--------------|-----------|
109
|Motion Driving-multi-personal "Mai-ha-hi" | [Click and Try](https://aistudio.baidu.com/aistudio/projectdetail/1603391) |
110
|Restore the video of Beijing hundreds years ago|[Click and Try](https://aistudio.baidu.com/aistudio/projectdetail/1161285)|
111
|Motion Driving-When "Su Daqiang" sings "unravel" |[Click and Try](https://aistudio.baidu.com/aistudio/projectdetail/1048840)|
112

L
LielinJiang 已提交
113
## Examples
L
LielinJiang 已提交
114

Y
YixinKristy 已提交
115
### Face Morphing 
116 117 118 119 120

<div align='center'>
  <img src='https://user-images.githubusercontent.com/48054808/129020371-75de20d1-705b-44b1-8254-e09710124244.gif'width='700' />
</div>

L
LielinJiang 已提交
121
### Image Translation
L
LaraStuStu 已提交
122 123

<div align='center'>
124
  <img src='https://user-images.githubusercontent.com/48054808/119464966-d5c1c000-bd75-11eb-9696-9bb75357229f.gif'width='700' height='200'/>
L
LaraStuStu 已提交
125 126
</div>

127

L
LielinJiang 已提交
128
### Old video restore
L
LaraStuStu 已提交
129
<div align='center'>
130
  <img src='https://user-images.githubusercontent.com/48054808/119469496-fc81f580-bd79-11eb-865a-5e38482b1ae8.gif' width='700'/>
L
LaraStuStu 已提交
131 132 133
</div>


134

L
LielinJiang 已提交
135
### Motion driving
L
LaraStuStu 已提交
136
<div align='center'>
137
  <img src='https://user-images.githubusercontent.com/48054808/119469551-0a377b00-bd7a-11eb-9117-e4871c8fb9c0.gif' width='700'>
L
LaraStuStu 已提交
138 139
</div>

140

L
LielinJiang 已提交
141
### Super resolution
L
LaraStuStu 已提交
142 143

<div align='center'>
144
  <img src='https://user-images.githubusercontent.com/48054808/119469753-3e12a080-bd7a-11eb-9cde-4fa01b3201ab.png'width='700' height='250'/>
L
LaraStuStu 已提交
145 146 147
</div>


148

L
LielinJiang 已提交
149
### Makeup shifter
L
LaraStuStu 已提交
150 151

<div align='center'>
152
  <img src='https://user-images.githubusercontent.com/48054808/119469834-4ff44380-bd7a-11eb-93b6-05b705dcfbf2.png'width='700' height='250'/>
L
LielinJiang 已提交
153 154 155
</div>


156

L
LielinJiang 已提交
157
### Face cartoonization
L
LielinJiang 已提交
158 159

<div align='center'>
160
  <img src='https://user-images.githubusercontent.com/48054808/119469952-6bf7e500-bd7a-11eb-89ad-9a78b10bd4ab.png'width='700' height='250'/>
L
LaraStuStu 已提交
161 162
</div>

H
haoqiang 已提交
163

164

H
haoqiang 已提交
165 166 167
### Realistic face cartoonization

<div align='center'>
168
  <img src='https://user-images.githubusercontent.com/48054808/119470028-7f0ab500-bd7a-11eb-88e9-78a6b9e2e319.png'width='700' height='250'/>
H
haoqiang 已提交
169 170 171
</div>


172

L
LielinJiang 已提交
173
### Photo animation
Q
qingqing01 已提交
174 175

<div align='center'>
176
  <img src='https://user-images.githubusercontent.com/48054808/119470099-9184ee80-bd7a-11eb-8b12-c9400fe01266.png'width='700' height='250'/>
Q
qingqing01 已提交
177
</div>
Q
qingqing01 已提交
178

L
lijianshe02 已提交
179

180

L
lijianshe02 已提交
181 182 183
### Lip-syncing

<div align='center'>
184
  <img src='https://user-images.githubusercontent.com/48054808/119470166-a6618200-bd7a-11eb-9f98-58052ce21b14.gif'width='700'>
L
lijianshe02 已提交
185 186 187
</div>


188

L
LielinJiang 已提交
189
## Changelog
Q
qingqing01 已提交
190 191

- v0.1.0 (2020.11.02)
L
LielinJiang 已提交
192 193
  - Release first version, supported models include Pixel2Pixel, CycleGAN, PSGAN. Supported applications include video frame interpolation, super resolution, colorize images and videos, image animation.
  - Modular design and friendly interface.
L
LielinJiang 已提交
194

L
LielinJiang 已提交
195
## Community
L
LaraStuStu 已提交
196

L
LielinJiang 已提交
197
Scan OR Code below to join [PaddleGAN QQ Group:1058398620], you can get offical technical support  here and communicate with other developers/friends. Look forward to your participation!
L
LaraStuStu 已提交
198 199 200 201

<div align='center'>
  <img src='./docs/imgs/qq.png'width='250' height='300'/>
</div>
L
LielinJiang 已提交
202

L
LielinJiang 已提交
203
### PaddleGAN Special Interest Group(SIG)
L
LielinJiang 已提交
204

L
LielinJiang 已提交
205
It was first proposed and used by [ACM(Association for Computing Machinery)](https://en.wikipedia.org/wiki/Association_for_Computing_Machinery) in 1961. Top International open source organizations including [Kubernates](https://kubernetes.io/) all adopt the form of SIGs, so that members with the same specific interests can share, learn knowledge and develop projects. These members do not need to be in the same country/region or the same organization, as long as they are like-minded, they can all study, work, and play together with the same goals~
L
LielinJiang 已提交
206

L
LielinJiang 已提交
207
PaddleGAN SIG is such a developer organization that brings together people who interested in GAN. There are frontline developers of PaddlePaddle, senior engineers from the world's top 500, and students from top universities at home and abroad.
L
LielinJiang 已提交
208

L
LielinJiang 已提交
209
We are continuing to recruit developers interested and capable to join us building this project and explore more useful and interesting applications together.
Q
qingqing01 已提交
210

L
LielinJiang 已提交
211
SIG contributions:
Q
qingqing01 已提交
212

L
LielinJiang 已提交
213 214 215
- [zhen8838](https://github.com/zhen8838): contributed to AnimeGANv2.
- [Jay9z](https://github.com/Jay9z): contributed to DCGAN and updated install docs, etc.
- [HighCWu](https://github.com/HighCWu): contributed to c-DCGAN and WGAN. Support to use `paddle.vision.datasets`.
Q
qingqing01 已提交
216
- [hao-qiang](https://github.com/hao-qiang) & [ minivision-ai ](https://github.com/minivision-ai): contributed to the photo2cartoon project.
Q
qingqing01 已提交
217

L
LielinJiang 已提交
218

L
LielinJiang 已提交
219
## Contributing
Q
qingqing01 已提交
220

L
LielinJiang 已提交
221 222 223
Contributions and suggestions are highly welcomed. Most contributions require you to agree to a [Contributor License Agreement (CLA)](https://cla-assistant.io/PaddlePaddle/PaddleGAN) declaring.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA. Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
For more, please reference [contribution guidelines](docs/en_US/contribute.md).
L
LaraStuStu 已提交
224

L
LielinJiang 已提交
225 226
## License
PaddleGAN is released under the [Apache 2.0 license](LICENSE).