install.md 1.4 KB
Newer Older
L
LielinJiang 已提交
1 2 3 4
## Install PaddleGAN

### requirements

L
LielinJiang 已提交
5
* PaddlePaddle >= 2.0.0
L
LielinJiang 已提交
6
* Python >= 3.6
L
LielinJiang 已提交
7 8 9 10
* CUDA >= 9.0

### 1. Install PaddlePaddle
```
L
LielinJiang 已提交
11
pip install -U paddlepaddle-gpu==2.0.0
L
LielinJiang 已提交
12 13
```

L
LielinJiang 已提交
14
Note: command above will install paddle with cuda10.2, if your installed cuda is different, please visit home page of [paddlepaddle](https://www.paddlepaddle.org.cn/install/quick) for more help.
L
LielinJiang 已提交
15

郑启航 已提交
16
### 2. Install paddleGAN
J
Jie Han 已提交
17 18

#### 2.1 Install through pip
Q
qingqing01 已提交
19 20 21

```
# only support Python3
L
LielinJiang 已提交
22
python3 -m pip install --upgrade ppgan
Q
qingqing01 已提交
23 24 25
```

Download the examples and configuration files via cloning the source code:
L
LielinJiang 已提交
26 27 28 29

```
git clone https://github.com/PaddlePaddle/PaddleGAN
cd PaddleGAN
Q
qingqing01 已提交
30
```
L
LielinJiang 已提交
31

J
Jie Han 已提交
32
#### 2.2 Install through source code
Q
qingqing01 已提交
33 34 35 36

```
git clone https://github.com/PaddlePaddle/PaddleGAN
cd PaddleGAN
L
LielinJiang 已提交
37 38
pip install -v -e .  # or "python setup.py develop"
```
L
LielinJiang 已提交
39 40 41 42 43 44 45 46 47 48

### 4. Installation of other tools that may be used

#### 4.1 ffmpeg

If you need to use ppgan to handle video-related tasks, you need to install ffmpeg. It is recommended that you use [conda](https://docs.conda.io/en/latest/miniconda.html) to install:

```
conda install x264=='1!152.20180717' ffmpeg=4.0.2 -c conda-forge
```
郑启航 已提交
49 50 51 52 53 54 55

#### 4.2 Visual DL
If you want to use [PaddlePaddle VisualDL](https://github.com/PaddlePaddle/VisualDL) to monitor the training process, Please install `VisualDL`(For more detail refer [here](./get_started.md)):

```
python -m pip install visualdl -i https://mirror.baidu.com/pypi/simple
```