diff --git a/examples/aishell/s1/run.sh b/examples/aishell/s1/run.sh index e3c00823..054fdd46 100644 --- a/examples/aishell/s1/run.sh +++ b/examples/aishell/s1/run.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e source path.sh +set -e stage=0 stop_stage=100 @@ -46,5 +46,5 @@ fi # Optionally, you can add LM and test it with runtime. if [ ${stage} -le 6 ] && [ ${stop_stage} -ge 6 ]; then # train lm and build TLG - ./local/tlg.sh --corpus aishell --lmtype srilm + ./local/tlg.sh --corpus aishell --lmtype srilm fi diff --git a/tests/benchmark/conformer/prepare.sh b/tests/benchmark/conformer/prepare.sh index 3e86b13d..8f03fd1b 100644 --- a/tests/benchmark/conformer/prepare.sh +++ b/tests/benchmark/conformer/prepare.sh @@ -1,7 +1,7 @@ -source ../../tools/venv/bin/activate +source ../../../tools/venv/bin/activate #Enter the example dir -pushd ../../examples/aishell/s1 +pushd ../../../examples/aishell/s1 #Prepare the data bash run.sh --stage 0 --stop_stage 0 diff --git a/tests/benchmark/conformer/run.sh b/tests/benchmark/conformer/run.sh index a77e43fe..f9244f5d 100644 --- a/tests/benchmark/conformer/run.sh +++ b/tests/benchmark/conformer/run.sh @@ -2,9 +2,9 @@ # 提供可稳定复现性能的脚本,默认在标准docker环境内py37执行: paddlepaddle/paddle:latest-gpu-cuda10.1-cudnn7 paddle=2.1.2 py=37 # 执行目录:需说明 CUR_DIR=${PWD} -source ../../tools/venv/bin/activate +source ../../../tools/venv/bin/activate #cd ** -pushd ../../examples/aishell/s1 +pushd ../../../examples/aishell/s1 # 1 安装该模型需要的依赖 (如需开启优化策略请注明) # 2 拷贝该模型需要数据、预训练模型