|
|
@ -2,9 +2,9 @@
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
source path.sh
|
|
|
|
source path.sh
|
|
|
|
|
|
|
|
|
|
|
|
gpus=0,1,2,3
|
|
|
|
gpus=2
|
|
|
|
stage=0
|
|
|
|
stage=3
|
|
|
|
stop_stage=100
|
|
|
|
stop_stage=3
|
|
|
|
conf_path=conf/deepspeech2.yaml
|
|
|
|
conf_path=conf/deepspeech2.yaml
|
|
|
|
avg_num=1
|
|
|
|
avg_num=1
|
|
|
|
|
|
|
|
|
|
|
@ -31,10 +31,10 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
|
|
|
|
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
|
|
|
|
# test ckpt avg_n
|
|
|
|
# test ckpt avg_n
|
|
|
|
CUDA_VISIBLE_DEVICES=0 ./local/test.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} || exit -1
|
|
|
|
CUDA_VISIBLE_DEVICES=${gpus} ./local/test.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} || exit -1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
|
|
|
|
if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
|
|
|
|
# export ckpt avg_n
|
|
|
|
# export ckpt avg_n
|
|
|
|
CUDA_VISIBLE_DEVICES=0 ./local/export.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} exp/${ckpt}/checkpoints/${avg_ckpt}.jit
|
|
|
|
CUDA_VISIBLE_DEVICES=${gpus} ./local/export.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} exp/${ckpt}/checkpoints/${avg_ckpt}.jit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|