|
|
@ -6,7 +6,7 @@ set -e
|
|
|
|
|
|
|
|
|
|
|
|
gpus=0,1,2,3
|
|
|
|
gpus=0,1,2,3
|
|
|
|
stage=0
|
|
|
|
stage=0
|
|
|
|
stop_stage=51
|
|
|
|
stop_stage=50
|
|
|
|
conf_path=conf/transformer.yaml
|
|
|
|
conf_path=conf/transformer.yaml
|
|
|
|
avg_num=30
|
|
|
|
avg_num=30
|
|
|
|
audio_file=data/demo_002_en.wav
|
|
|
|
audio_file=data/demo_002_en.wav
|
|
|
@ -42,7 +42,7 @@ if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
|
|
|
|
CUDA_VISIBLE_DEVICES=0 ./local/align.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} || exit -1
|
|
|
|
CUDA_VISIBLE_DEVICES=0 ./local/align.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} || exit -1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${stage} -le 5 ] && [ ${stop_stage} -ge 6 ]; then
|
|
|
|
if [ ${stage} -le 5 ] && [ ${stop_stage} -ge 5 ]; then
|
|
|
|
# test a single .wav file
|
|
|
|
# test a single .wav file
|
|
|
|
CUDA_VISIBLE_DEVICES=0 ./local/test_wav.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} ${audio_file} || exit -1
|
|
|
|
CUDA_VISIBLE_DEVICES=0 ./local/test_wav.sh ${conf_path} exp/${ckpt}/checkpoints/${avg_ckpt} ${audio_file} || exit -1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|