Merge pull request #1218 from yt605155624/fix_demos

[tts][demos]fix demos, test=tts
pull/1219/head
TianYuan 4 years ago committed by GitHub
commit 50e560b5c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,17 +37,20 @@ fi
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
# run tts # run tts
CUDA_VISIBLE_DEVICES=${gpus} \ CUDA_VISIBLE_DEVICES=${gpus} \
python3 ${BIN_DIR}/synthesize_e2e.py \ python3 ${BIN_DIR}/../synthesize_e2e.py \
--fastspeech2-config=download/fastspeech2_nosil_baker_ckpt_0.4/default.yaml \ --am=fastspeech2_csmsc \
--fastspeech2-checkpoint=download/fastspeech2_nosil_baker_ckpt_0.4/snapshot_iter_76000.pdz \ --am_config=download/fastspeech2_nosil_baker_ckpt_0.4/default.yaml \
--fastspeech2-stat=download/fastspeech2_nosil_baker_ckpt_0.4/speech_stats.npy \ --am_ckpt=download/fastspeech2_nosil_baker_ckpt_0.4/snapshot_iter_76000.pdz \
--pwg-config=download/pwg_baker_ckpt_0.4/pwg_default.yaml \ --am_stat=download/fastspeech2_nosil_baker_ckpt_0.4/speech_stats.npy \
--pwg-checkpoint=download/pwg_baker_ckpt_0.4/pwg_snapshot_iter_400000.pdz \ --voc=pwgan_csmsc \
--pwg-stat=download/pwg_baker_ckpt_0.4/pwg_stats.npy \ --voc_config=download/pwg_baker_ckpt_0.4/pwg_default.yaml \
--voc_ckpt=download/pwg_baker_ckpt_0.4/pwg_snapshot_iter_400000.pdz \
--voc_stat=download/pwg_baker_ckpt_0.4/pwg_stats.npy \
--lang=zh \
--text=sentences.txt \ --text=sentences.txt \
--output-dir=output/wavs \ --output_dir=output/wavs \
--inference-dir=output/inference \ --inference_dir=output/inference \
--phones-dict=download/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt --phones_dict=download/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt
# output/inference is not needed here, which save the static models # output/inference is not needed here, which save the static models
rm -rf output/inference rm -rf output/inference
fi fi

@ -37,17 +37,20 @@ fi
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
# run tts # run tts
CUDA_VISIBLE_DEVICES=${gpus} \ CUDA_VISIBLE_DEVICES=${gpus} \
python3 ${BIN_DIR}/synthesize_e2e.py \ python3 ${BIN_DIR}/../synthesize_e2e.py \
--fastspeech2-config=download/fastspeech2_nosil_baker_ckpt_0.4/default.yaml \ --am=fastspeech2_csmsc \
--fastspeech2-checkpoint=download/fastspeech2_nosil_baker_ckpt_0.4/snapshot_iter_76000.pdz \ --am_config=download/fastspeech2_nosil_baker_ckpt_0.4/default.yaml \
--fastspeech2-stat=download/fastspeech2_nosil_baker_ckpt_0.4/speech_stats.npy \ --am_ckpt=download/fastspeech2_nosil_baker_ckpt_0.4/snapshot_iter_76000.pdz \
--pwg-config=download/pwg_baker_ckpt_0.4/pwg_default.yaml \ --am_stat=download/fastspeech2_nosil_baker_ckpt_0.4/speech_stats.npy \
--pwg-checkpoint=download/pwg_baker_ckpt_0.4/pwg_snapshot_iter_400000.pdz \ --voc=pwgan_csmsc \
--pwg-stat=download/pwg_baker_ckpt_0.4/pwg_stats.npy \ --voc_config=download/pwg_baker_ckpt_0.4/pwg_default.yaml \
--voc_ckpt=download/pwg_baker_ckpt_0.4/pwg_snapshot_iter_400000.pdz \
--voc_stat=download/pwg_baker_ckpt_0.4/pwg_stats.npy \
--lang=zh \
--text=output/sentences.txt \ --text=output/sentences.txt \
--output-dir=output/wavs \ --output_dir=output/wavs \
--inference-dir=output/inference \ --inference_dir=output/inference \
--phones-dict=download/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt --phones_dict=download/fastspeech2_nosil_baker_ckpt_0.4/phone_id_map.txt
# output/inference is not needed here, which save the static models # output/inference is not needed here, which save the static models
rm -rf output/inference rm -rf output/inference
fi fi

Loading…
Cancel
Save