You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
672 B
29 lines
672 B
3 years ago
|
#!/bin/bash
|
||
|
set -e
|
||
|
source path.sh
|
||
|
|
||
|
stage=0
|
||
|
stop_stage=100
|
||
|
conf_path=conf/deepspeech2.yaml
|
||
|
avg_num=1
|
||
|
model_type=offline
|
||
3 years ago
|
gpus=0
|
||
3 years ago
|
|
||
|
source ${MAIN_ROOT}/utils/parse_options.sh || exit 1;
|
||
|
|
||
|
v18_ckpt=baidu_en8k_v1.8
|
||
|
ckpt=$(basename ${conf_path} | awk -F'.' '{print $1}')
|
||
|
echo "checkpoint name ${ckpt}"
|
||
|
|
||
|
if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
|
||
|
# prepare data
|
||
|
mkdir -p exp/${ckpt}/checkpoints
|
||
3 years ago
|
bash ./local/data.sh exp/${ckpt}/checkpoints || exit -1
|
||
3 years ago
|
fi
|
||
|
|
||
|
if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
|
||
|
# test ckpt avg_n
|
||
3 years ago
|
CUDA_VISIBLE_DEVICES=${gpus} ./local/test.sh ${conf_path} exp/${ckpt}/checkpoints/${v18_ckpt} ${model_type}|| exit -1
|
||
3 years ago
|
fi
|
||
|
|