README_cn.md 14.1 KB
Newer Older
L
LielinJiang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

简体中文 | [English](./README.md)

# PaddleGAN

飞桨生成对抗网络开发套件--PaddleGAN,为开发者提供经典及前沿的生成对抗网络高性能实现,并支撑开发者快速构建、训练及部署生成对抗网络,以供学术、娱乐及产业应用。

GAN--生成对抗网络,被“卷积网络之父”**Yann LeCun(杨立昆)**誉为**「过去十年计算机科学领域最有趣的想法之一」**,是近年来火遍全网,AI研究者最为关注的深度学习技术方向之一。

<div align='center'>
  <img src='./docs/imgs/ppgan.jpg'>
</div>

[![License](https://img.shields.io/badge/license-Apache%202-red.svg)](LICENSE)![python version](https://img.shields.io/badge/python-3.6+-orange.svg)

16 17 18



19
## 近期活动🔥🔥🔥
Y
YixinKristy 已提交
20

S
simonsLiang 已提交
21

Y
YixinKristy 已提交
22 23
- 🔥**2021.12.08**🔥
  **💙 AI快车道👩‍🏫:视频超分算法及行业应用 💙**
Y
YixinKristy 已提交
24
  - **课程回放链接🔗:https://aistudio.baidu.com/aistudio/education/group/info/25179**
25

L
LielinJiang 已提交
26

27

Y
YixinKristy 已提交
28 29 30
- 2021.4.15~4.22

  生成对抗网络七日打卡营火爆来袭,赶紧让百度资深研发带你上车GAN起来吧!
31

Y
YixinKristy 已提交
32
  **直播回放与课件资料:https://aistudio.baidu.com/aistudio/course/introduce/16651**
33

Y
YixinKristy 已提交
34
- 2020.12.10
35

Y
YixinKristy 已提交
36
  《大谷 Spitzer 手把手教你修复百年前老北京影像》b站直播中奖用户名单请点击[PaddleGAN直播中奖名单](./docs/luckydraw.md)查看~
37

Y
YixinKristy 已提交
38
  **想要看直播回放视频请点击链接:https://www.bilibili.com/video/BV1GZ4y1g7xc**
L
LielinJiang 已提交
39

Y
YixinKristy 已提交
40
## 产品动态
Y
YixinKristy 已提交
41 42 43 44 45
- 👶 **人脸编辑神器:[StyleGAN V2人脸属性编辑](./docs/zh_CN/tutorials/styleganv2editing.md)之年龄变换--时光穿梭机,一键实现变老变年轻** 👨‍🦳
  - **[完整在线教程](https://aistudio.baidu.com/aistudio/projectdetail/3251280?channelType=0&channel=0)**
  <div align='center'>
    <img src='https://user-images.githubusercontent.com/48054808/146649047-765ec085-0a2c-4c88-9527-744836448651.gif' width='200'/>
  </div>
L
LielinJiang 已提交
46

Y
YixinKristy 已提交
47 48
-  👀 **视频超分SOTA算法[PP-MSVSR](./docs/zh_CN/tutorials/video_super_resolution.md):一行命令从"马赛克"到"高清影像"** 👀
    - **[完整在线教程](https://aistudio.baidu.com/aistudio/projectdetail/3205183)**
Y
YixinKristy 已提交
49
  <div align='center'>
Y
YixinKristy 已提交
50
    <img src='https://user-images.githubusercontent.com/48054808/144848981-00c6ad21-0702-4381-9544-becb227ed9f0.gif' width='400'/>
Y
YixinKristy 已提交
51
  </div>
Y
YixinKristy 已提交
52

53 54 55
- 😍 **人脸编辑神器:[StyleGAN V2人脸属性编辑](./docs/zh_CN/tutorials/styleganv2editing.md)之性别转换--怕什么孤单?和自己谈一场恋爱吧!** 😍
  - **[完整在线教程](https://aistudio.baidu.com/aistudio/projectdetail/2565277?contributionType=1)**
  <div align='center'>
Y
YixinKristy 已提交
56
    <img src='https://user-images.githubusercontent.com/48054808/141226707-58bd661e-2102-4fb7-8e18-c794a6b59ee8.gif' width='400'/>
57
  </div>
Y
YixinKristy 已提交
58

59
- 👩‍🚀 **宇宙漫游指南:[LapStyle](./docs/zh_CN/tutorials/lap_style.md)风格迁移带你「沉浸式」体验太空漫游** 👨‍🚀
Y
YixinKristy 已提交
60 61 62 63 64 65 66 67 68

  - **[完整在线教程](https://aistudio.baidu.com/aistudio/projectdetail/2343740?contributionType=1)**

    <div align='center'>
      <img src='https://user-images.githubusercontent.com/48054808/133392621-9a552c46-841b-4fe4-bb24-7b0cbf86616c.gif' width='250'/>
      <img src='https://user-images.githubusercontent.com/48054808/133392630-c5329c4c-bc10-406e-a853-812a2b1f0fa6.gif' width='250'/>
      <img src='https://user-images.githubusercontent.com/48054808/133392652-f4811b1e-0676-4402-808b-a4c96c611368.gif' width='250'/>
    </div>

69
- 🧙‍♂️ **新增创意项目**:制作专属于你的**会动的霍格沃兹魔法头像** 🧙‍♀️
Y
YixinKristy 已提交
70 71 72

  - **[完整在线教程](https://aistudio.baidu.com/aistudio/projectdetail/2288888?channelType=0&channel=0)**

Y
YixinKristy 已提交
73 74

    <div align='center'>
Y
YixinKristy 已提交
75
      <img src='https://ai-studio-static-online.cdn.bcebos.com/da1c51844ac048aa8d4fa3151be95215eee75d8bb488409d92ec17285b227c2c' width='200'/>
Y
YixinKristy 已提交
76
    </div>
W
wangna11BD 已提交
77

Y
YixinKristy 已提交
78
-**新增人脸融合能力,结合新版Frirst Order Motion,实现人脸完美融合并带有丰富表情(๑^ں^๑)**
79 80 81 82

  - **[完整在线教程](https://aistudio.baidu.com/aistudio/projectdetail/2254031 )**

  <div align='center'>
Y
YixinKristy 已提交
83
    <img src='https://user-images.githubusercontent.com/48054808/128299870-66a73bb3-57a4-4985-aadc-8ddeab048145.gif' width='200'/>
84 85
  </div>

Y
YixinKristy 已提交
86 87 88 89 90 91 92
- 新增First Order Motion分辨率512清晰版本,并加上人脸增强特效,使得面部细节更清晰,详情见[教程](./docs/zh_CN/tutorials/motion_driving.md)

- 新增真实照片转油画风格能力

  - 完整推理代码及教程见: https://github.com/wzmsltw/PaintTransformer

    <div align='center'>
Y
YixinKristy 已提交
93
      <img src='https://user-images.githubusercontent.com/48054808/129904830-8b87e310-ea51-4aff-b29b-88920ee82447.png' width='500'/>
Y
YixinKristy 已提交
94 95
    </div>

Y
YixinKristy 已提交
96
## 文档教程
L
LielinJiang 已提交
97

Y
YixinKristy 已提交
98
### 安装
L
LielinJiang 已提交
99

Y
YixinKristy 已提交
100 101 102 103 104
- 环境依赖:
  - PaddlePaddle >= 2.1.0
  - Python >= 3.6
  - CUDA >= 10.1
- [完整安装教程](./docs/zh_CN/install.md)
L
LielinJiang 已提交
105

Y
YixinKristy 已提交
106
### 入门教程
L
LielinJiang 已提交
107

Y
YixinKristy 已提交
108 109
- [快速开始](./docs/zh_CN/get_started.md)
- [数据准备](./docs/zh_CN/data_prepare.md)
110 111
- [API接口使用文档](./docs/zh_CN/apis/apps.md)
- [配置文件/Config使用说明](./docs/zh_CN/config_doc.md)
L
LielinJiang 已提交
112

Y
YixinKristy 已提交
113
## 模型库
L
LielinJiang 已提交
114

Y
YixinKristy 已提交
115 116 117 118 119 120 121 122
* 图像翻译
  * 风格迁移:[Pixel2Pixel](./docs/zh_CN/tutorials/pix2pix_cyclegan.md)
  * 风格迁移:[CycleGAN](./docs/zh_CN/tutorials/pix2pix_cyclegan.md)
  * 图像艺术风格转换:[LapStyle](./docs/zh_CN/tutorials/lap_style.md)
  * 人脸换妆:[PSGAN](./docs/zh_CN/tutorials/psgan.md)
  * 照片动漫化:[AnimeGANv2](./docs/zh_CN/tutorials/animegan.md)
  * 人像动漫化:[U-GAT-IT](./docs/zh_CN/tutorials/ugatit.md)
  * 人脸卡通化:[Photo2Cartoon](docs/zh_CN/tutorials/photo2cartoon.md)
W
wangna11BD 已提交
123
  * 多种风格迁移:[StarGANv2](docs/zh_CN/tutorials/starganv2.md)
Y
YixinKristy 已提交
124 125 126
* 动作迁移
  * 人脸表情迁移:[First Order Motion Model](./docs/zh_CN/tutorials/motion_driving.md)
  * 唇形合成:[Wav2Lip](docs/zh_CN/tutorials/wav2lip.md)
W
wangna11BD 已提交
127
* 基础GAN
Y
YixinKristy 已提交
128 129
  * [DCGAN](https://github.com/PaddlePaddle/PaddleGAN/blob/develop/ppgan/models/dc_gan_model.py)
  * WGAN
W
wangna11BD 已提交
130
* 人脸生成
Y
YixinKristy 已提交
131
  * 人脸生成:[StyleGAN2](./docs/zh_CN/tutorials/styleganv2.md)
W
wangna11BD 已提交
132 133 134
  * 人脸编码:[Pixel2Style2Pixel](./docs/zh_CN/tutorials/pixel2style2pixel.md)
  * 人脸增强:[FaceEnhancement](./docs/zh_CN/tutorials/face_enhancement.md)
  * 人脸解析:[FaceParsing](./docs/zh_CN/tutorials/face_parse.md)
W
wangna11BD 已提交
135
  * 盲人脸修复:[GFPGan](./docs/zh_CN/tutorials/gfpgan.md)[GPEN](./docs/zh_CN/tutorials/gpen.md)
Y
YixinKristy 已提交
136 137
* 分辨率提升
  * 单张图片超分:[Single Image Super Resolution(SISR)](./docs/zh_CN/tutorials/single_image_super_resolution.md)
W
wangna11BD 已提交
138
    * 包含模型:RealSR、ESRGAN、LESRCNN、PAN、DRN
139
  * 视频超分:[Video Super Resolution(VSR)](./docs/zh_CN/tutorials/video_super_resolution.md)
W
wangna11BD 已提交
140 141
    * 包含模型:⭐ PP-MSVSR ⭐、EDVR、BasicVSR、BasicVSR++
* 图像视频修复
K
kongdebug 已提交
142
  * 图像去模糊去噪去雨:[MPR Net](./docs/zh_CN/tutorials/mpr_net.md)[SwinIR](./docs/zh_CN/tutorials/swinir.md)[InvDN](./docs/zh_CN/tutorials/invdn.md)[NAFNet](./docs/zh_CN/tutorials/nafnet.md)
W
wangna11BD 已提交
143
  * 视频去模糊:[EDVR](./docs/zh_CN/tutorials/video_super_resolution.md)
S
simonsLiang 已提交
144
  * 图像去雨:[PReNet](./docs/zh_CN/tutorials/prenet.md)
F
FutureSI 已提交
145
  * 图像补全:[AOT-GAN](./docs/zh_CN/tutorials/aotgan.md)
L
LielinJiang 已提交
146

Y
YixinKristy 已提交
147
## 产业级应用
L
LielinJiang 已提交
148

Y
YixinKristy 已提交
149
- [智能影像修复](./docs/zh_CN/industrial_solution/video_restore_cn.md)
L
LielinJiang 已提交
150 151 152 153 154 155 156

## 在线教程

您可以通过[人工智能学习与实训社区AI Studio](https://aistudio.baidu.com/aistudio/index) 的示例工程在线体验PaddleGAN的部分能力:

|在线教程      |    链接   |
|--------------|-----------|
157
|人脸融合-PaddleGAN七夕特辑 | [点击体验](https://aistudio.baidu.com/aistudio/projectdetail/2254031 ) |
158
|表情动作迁移-一键实现多人版「蚂蚁呀嘿」 | [点击体验](https://aistudio.baidu.com/aistudio/projectdetail/1603391) |
L
LielinJiang 已提交
159 160 161
|老北京视频修复|[点击体验](https://aistudio.baidu.com/aistudio/projectdetail/1161285)|
|表情动作迁移-当苏大强唱起unravel |[点击体验](https://aistudio.baidu.com/aistudio/projectdetail/1048840)|

162

L
LielinJiang 已提交
163 164
## 效果展示

165 166 167 168 169
### 人脸融合

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

Y
YixinKristy 已提交
171
### 风格迁移
L
LielinJiang 已提交
172 173

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

177

L
LielinJiang 已提交
178 179 180
### 老视频修复

<div align='center'>
W
wangna11BD 已提交
181
  <img src='https://user-images.githubusercontent.com/48054808/119469496-fc81f580-bd79-11eb-865a-5e38482b1ae8.gif' width='700'/>
L
LielinJiang 已提交
182 183 184
</div>


185

L
LielinJiang 已提交
186 187 188
### 动作迁移

<div align='center'>
189
  <img src='https://user-images.githubusercontent.com/48054808/119469551-0a377b00-bd7a-11eb-9117-e4871c8fb9c0.gif' width='700'/>
L
LielinJiang 已提交
190 191
</div>

192

L
LielinJiang 已提交
193 194 195
### 超分辨率

<div align='center'>
196
  <img src='https://user-images.githubusercontent.com/48054808/119469753-3e12a080-bd7a-11eb-9cde-4fa01b3201ab.png'width='700' height='250'/>
L
LielinJiang 已提交
197 198 199
</div>


200

L
LielinJiang 已提交
201 202 203
### 妆容迁移

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


208

L
LielinJiang 已提交
209 210 211
### 人脸动漫化

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

H
haoqiang 已提交
215

216

H
haoqiang 已提交
217 218 219
### 写实人像卡通化

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


224

L
LielinJiang 已提交
225 226 227
### 照片动漫化

<div align='center'>
228
  <img src='https://user-images.githubusercontent.com/48054808/119470099-9184ee80-bd7a-11eb-8b12-c9400fe01266.png'width='700' height='250'/>
L
LielinJiang 已提交
229 230
</div>

L
lijianshe02 已提交
231

232

L
lijianshe02 已提交
233 234 235
### 唇形同步

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


240

L
LielinJiang 已提交
241
## 版本更新
L
LielinJiang 已提交
242 243 244 245 246 247 248 249
- v2.1.0 (2021.12.8)
  - 发布视频超分辨率模型PP-MSVSR以及多个预训练权重
  - 发布BasicVSR,IconVSR与Basicvsr++等多个效果领先的视频超分辨率模型及其预训练模型
  - 发布轻量级动作驱动模型(体积压缩:229M->10.1M),并优化融合效果
  - 发布高分辨率的FOMM和Wav2Lip预训练模型
  - 发布人脸反演,人脸融合和人脸编辑等多个基于StyleGANv2的有趣应用
  - 发布百度自研且效果领先的风格迁移模型LapStyle及其有趣应用,并上线官网[体验页面](https://www.paddlepaddle.org.cn/paddlegan)
  - 发布轻量的图像超分辨模型PAN
L
LielinJiang 已提交
250

Y
YixinKristy 已提交
251 252 253 254 255 256
- v2.0.0 (2021.6.2)
  - 发布[Fisrt Order Motion](https://github.com/PaddlePaddle/PaddleGAN/blob/develop/docs/en_US/tutorials/motion_driving.md)模型以及多个预训练权重
  - 发布支持[多人脸驱动](https://github.com/PaddlePaddle/PaddleGAN/blob/develop/docs/en_US/tutorials/motion_driving.md#1-test-for-face)的应用
  - 发布视频超分辨模型[EDVR](https://github.com/PaddlePaddle/PaddleGAN/blob/develop/docs/en_US/tutorials/video_super_resolution.md)以及多个预训练权重
  - 发布PaddleGAN对应的[七日打卡训练营](https://github.com/PaddlePaddle/PaddleGAN/tree/develop/education)内容
  - 增强PaddleGAN在windows平台运行的鲁棒性
L
LielinJiang 已提交
257 258 259 260 261 262 263 264 265

- v2.0.0-beta (2021.3.1)
  - 完全切换Paddle 2.0.0版本的API。
  - 发布超分辨模型:ESRGAN,RealSR,LESRCNN,DRN等
  - 发布唇形迁移模型:Wav2Lip
  - 发布街景动漫化模型:AnimeGANv2
  - 发布人脸动漫化模型:U-GAT-IT ,Photo2Cartoon
  - 发布高清人脸生成模型:StyleGAN2

L
LielinJiang 已提交
266 267 268 269
- v0.1.0 (2020.11.02)
  - 初版发布,支持Pixel2Pixel、CycleGAN、PSGAN模型,支持视频插针、超分、老照片/视频上色、视频动作生成等应用。
  - 模块化设计,接口简单易用。

K
kyanaww 已提交
270

L
LielinJiang 已提交
271 272 273 274 275 276 277 278
## 欢迎加入PaddleGAN技术交流群

扫描二维码加入PaddleGAN QQ群[群号:1058398620],获得更高效的问题答疑,与各行业开发者交流讨论,我们期待您的加入!

<div align='center'>
  <img src='./docs/imgs/qq.png'width='250' height='300'/>
</div>

279 280
扫描二维码回复关键字"GAN"即可加入官方微信交流群!
  <div align='center'>
Y
YixinKristy 已提交
281
    <img src='https://user-images.githubusercontent.com/48054808/151125373-ab458d9b-b1b3-4157-a281-088697ab0639.png' width='200'/>
282 283 284
  </div>


L
LielinJiang 已提交
285 286 287 288 289 290 291 292 293 294 295 296
### PaddleGAN 特别兴趣小组(Special Interest Group)

最早于1961年被[ACM(Association for Computing Machinery)](https://en.wikipedia.org/wiki/Association_for_Computing_Machinery)首次提出并使用,国际顶尖开源组织包括[Kubernates](https://kubernetes.io/)都采用SIGs的形式,使拥有同样特定兴趣的成员可以共同分享、学习知识并进行项目开发。这些成员不需要在同一国家/地区、同一个组织,只要大家志同道合,都可以奔着相同的目标一同学习、工作、玩耍~

PaddleGAN SIG就是这样一个汇集对GAN感兴趣小伙伴们的开发者组织,在这里,有百度飞桨的一线开发人员、有来自世界500强的资深工程师、有国内外顶尖高校的学生。

我们正在持续招募有兴趣、有能力的开发者加入我们一起共同建设本项目,并一起探索更多有用、有趣的应用。欢迎大家在加入群后联系我们讨论加入SIG并参与共建事宜。

SIG贡献:

- [zhen8838](https://github.com/zhen8838): 贡献AnimeGANv2.
- [Jay9z](https://github.com/Jay9z): 贡献DCGAN的示例、修改安装文档等。
Y
YixinKristy 已提交
297
- [HighCWu](https://github.com/HighCWu): 贡献c-DCGAN和WGAN,以及对`paddle.vision.datasets`数据集的支持;贡献inversion部分代码复现。
Q
qingqing01 已提交
298
- [hao-qiang](https://github.com/hao-qiang) & [ minivision-ai ](https://github.com/minivision-ai): 贡献人像卡通化photo2cartoon项目。
Y
YixinKristy 已提交
299
- [lyl120117](https://github.com/lyl120117):贡献去模糊MPRNet推理代码。
L
LielinJiang 已提交
300 301 302 303 304 305 306 307 308


## 贡献代码

我们非常欢迎您可以为PaddleGAN提供任何贡献和建议。大多数贡献都需要同意参与者许可协议(CLA)。当提交拉取请求时,CLA机器人会自动检查您是否需要提供CLA。 只需要按照机器人提供的说明进行操作即可。CLA只需要同意一次,就能应用到所有的代码仓库上。关于更多的流程请参考[贡献指南](docs/zh_CN/contribute.md)

## 许可证书

本项目的发布受[Apache 2.0 license](LICENSE)许可认证。