|
|
@ -17,7 +17,7 @@ avg_ckpt=avg_${avg_num}
|
|
|
|
ckpt=$(basename ${conf_path} | awk -F'.' '{print $1}')
|
|
|
|
ckpt=$(basename ${conf_path} | awk -F'.' '{print $1}')
|
|
|
|
echo "checkpoint name ${ckpt}"
|
|
|
|
echo "checkpoint name ${ckpt}"
|
|
|
|
|
|
|
|
|
|
|
|
audio_file="data/tmp.wav"
|
|
|
|
audio_file="data/demo_01_03.wav"
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
|
|
|
|
if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
|
|
|
|
# prepare data
|
|
|
|
# prepare data
|
|
|
@ -51,5 +51,5 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then
|
|
|
|
if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then
|
|
|
|
# test a single .wav file
|
|
|
|
# test a single .wav file
|
|
|
|
CUDA_VISIBLE_DEVICES=0 ./local/test_hub.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
|
|
|
|