|
|
|
@ -4,13 +4,14 @@ source path.sh
|
|
|
|
|
|
|
|
|
|
stage=0
|
|
|
|
|
stop_stage=100
|
|
|
|
|
conf_path=conf/deepspeech2.yaml
|
|
|
|
|
ckpt=$(basename ${conf_path} | awk -F'.' '{print $1}')
|
|
|
|
|
avg_num=1
|
|
|
|
|
avg_ckpt=avg_${avg_num}
|
|
|
|
|
|
|
|
|
|
conf_path=conf/transformer.yaml
|
|
|
|
|
avg_num=30
|
|
|
|
|
source ${MAIN_ROOT}/utils/parse_options.sh || exit 1;
|
|
|
|
|
|
|
|
|
|
avg_ckpt=avg_${avg_num}
|
|
|
|
|
ckpt=$(basename ${conf_path} | awk -F'.' '{print $1}')
|
|
|
|
|
echo "checkpoint name ${ckpt}"
|
|
|
|
|
|
|
|
|
|
if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
|
|
|
|
|
# prepare data
|
|
|
|
|
bash ./local/data.sh || exit -1
|
|
|
|
@ -34,4 +35,4 @@ fi
|
|
|
|
|
if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
|
|
|
|
|
# export ckpt avg_n
|
|
|
|
|
CUDA_VISIBLE_DEVICES= ./local/export.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} exp/${ckpt}/checkpoints/${avg_ckpt}.jit
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|