Skip to content

Commit afa9466

Browse files
authored
[Hackathon 7th] 修复Example/tiny的文档错误 (#3892)
* Update README.md * Update README.md
1 parent 83ff490 commit afa9466

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/tiny/asr0/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can set the local variables (except `ckpt`) when you use the `run.sh`
5151

5252
For example, you can set the `gpus` and `avg_num` when you use the command line.:
5353
```bash
54-
bash run.sh --gpus 0,1 --avg_num 20
54+
bash run.sh --gpus 0,1 --avg_num 1
5555
```
5656
## Stage 0: Data processing
5757
To use this example, you need to process data firstly and you can use stage 0 in the `run.sh` to do this. The code is shown below:
@@ -134,7 +134,7 @@ The test stage is to evaluate the model performance. The code of the test stage
134134
```bash
135135
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
136136
# test ckpt avg_n
137-
CUDA_VISIBLE_DEVICES=0 ./local/test.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} || exit -1
137+
CUDA_VISIBLE_DEVICES=${gpus} ./local/test.sh ${conf_path} ${decode_conf_path} exp/${ckpt}/checkpoints/${avg_ckpt}|| exit -1
138138
fi
139139
```
140140
If you want to train a model and test it, you can use the script below to execute stage 0, stage 1, stage 2, and stage 3 :
@@ -147,7 +147,7 @@ source path.sh
147147
bash ./local/data.sh
148148
CUDA_VISIBLE_DEVICES= ./local/train.sh conf/deepspeech2.yaml deepspeech2
149149
avg.sh best exp/deepspeech2/checkpoints 1
150-
CUDA_VISIBLE_DEVICES= ./local/test.sh conf/deepspeech2.yaml exp/deepspeech2/checkpoints/avg_1
150+
CUDA_VISIBLE_DEVICES= ./local/test.sh conf/deepspeech2.yaml conf/tuning/decode.yaml exp/deepspeech2/checkpoints/avg_1
151151
```
152152
## Stage 4: Static graph model Export
153153
This stage is to transform dygraph to static graph.

0 commit comments

Comments
 (0)