Skip to content

Commit

Permalink
Merge pull request #55 from xinghai-sun/ds2
Browse files Browse the repository at this point in the history
Add audio data provider and a simplified DeepSpeech2 model configuration.
  • Loading branch information
lcy-seso committed Jun 2, 2017
2 parents 367ed82 + 5de8e43 commit ec9cce9
Show file tree
Hide file tree
Showing 8 changed files with 1,079 additions and 0 deletions.
58 changes: 58 additions & 0 deletions deep_speech_2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Deep Speech 2 on PaddlePaddle

## 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)

```
python librispeech.py
```

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
```
Loading

0 comments on commit ec9cce9

Please sign in to comment.