README.md 2.3 KB
Newer Older
L
LielinJiang 已提交
1
English | [简体中文](./README_cn.md)
2

L
LielinJiang 已提交
3 4
# PaddleGAN

L
LielinJiang 已提交
5
PaddleGAN is an development kit of Generative Adversarial Network based on PaddlePaddle.
L
LielinJiang 已提交
6

L
LielinJiang 已提交
7 8 9
### Image Translation
![](./docs/imgs/A2B.png)
![](./docs/imgs/B2A.png)
L
LielinJiang 已提交
10

L
LielinJiang 已提交
11 12 13 14
### Makeup shifter
![](./docs/imgs/makeup_shifter.png)

### Old video restore
L
LielinJiang 已提交
15
![](./docs/imgs/color_sr_peking.gif)
16

L
LielinJiang 已提交
17
### Super resolution
L
LielinJiang 已提交
18 19 20

![](./docs/imgs/sr_demo.png)

L
LielinJiang 已提交
21

L
LielinJiang 已提交
22
Features:
L
LielinJiang 已提交
23

L
LielinJiang 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
- Highly Flexible:

  Components are designed to be modular. Model architectures, as well as data
preprocess pipelines, can be easily customized with simple configuration
changes.

- Rich applications:

  PaddleGAN provides rich of applications, such as image generation, image restore, image colorization, video interpolate, makeup shifter.

## Install

### 1. install paddlepaddle

PaddleGAN work with:
* PaddlePaddle >= 2.0.0-rc
* Python >= 3.5+
L
LielinJiang 已提交
41 42

```
L
LielinJiang 已提交
43
pip install -U paddlepaddle-gpu
L
LielinJiang 已提交
44 45
```

L
LielinJiang 已提交
46
### 2. install ppgan
L
LielinJiang 已提交
47 48 49 50 51 52

```
python -m pip install 'git+https://github.com/PaddlePaddle/PaddleGAN.git'
```

Or install it from a local clone
L
LielinJiang 已提交
53
```
L
LielinJiang 已提交
54 55 56 57
git clone https://github.com/PaddlePaddle/PaddleGAN
cd PaddleGAN

pip install -v -e .  # or "python setup.py develop"
L
LielinJiang 已提交
58
```
L
LielinJiang 已提交
59 60 61 62 63

## Data Prepare
Please refer to [data prepare](./docs/data_prepare.md) for dataset preparation.

## Get Start
L
LielinJiang 已提交
64
Please refer [get started](./docs/get_started.md) for the basic usage of PaddleGAN.
L
LielinJiang 已提交
65

L
LielinJiang 已提交
66 67 68 69 70 71
## Model tutorial
* [Pixel2Pixel and CycleGAN](./docs/tutorials/pix2pix_cyclegan.md)
* [PSGAN](./docs/tutorials/psgan.md)
* [Video restore](./docs/tutorails/video_restore.md)
* [Motion driving](./docs/tutorials/motion_driving.md)

L
LielinJiang 已提交
72 73 74 75 76
## License
PaddleGAN is released under the [Apache 2.0 license](LICENSE).

## Contributing

Q
qingqing01 已提交
77 78 79 80
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/CONTRIBUTE.md).

L
LielinJiang 已提交
81 82 83 84 85 86

## External Projects

External gan projects in the community that base on PaddlePaddle:

+ [PaddleGAN](https://github.com/PaddlePaddle/PaddleGAN)