README.md 826 字节
Newer Older
1 2
# Deep Speech 2 on PaddlePaddle

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
## Quick Start

### Installation

Please replace `$PADDLE_INSTALL_DIR` with your paddle installation directory.

```
pip install -r requirements.txt
export LD_LIBRARY_PATH=$PADDLE_INSTALL_DIR/Paddle/third_party/install/warpctc/lib:$LD_LIBRARY_PATH
```

For some machines, we also need to install libsndfile1. Details to be added.

### Preparing Dataset(s)

18 19 20
```
python librispeech.py
```
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 56 57 58
More help for arguments:

```
python librispeech.py --help
```

### Traininig

For GPU Training:

```
CUDA_VISIBLE_DEVICES=0,1,2,3 python train.py --trainer_count 4
```

For CPU Training:

```
python train.py --trainer_count 8 --use_gpu False
```

More help for arguments:

```
python train.py --help
```

### Inferencing

```
python infer.py
```

More help for arguments:

```
python infer.py --help
```