Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TTS]fix dygraph to static for tacotron2, test=doc #2426

Merged
merged 4 commits into from
Feb 23, 2023

Conversation

yt605155624
Copy link
Collaborator

@yt605155624 yt605155624 commented Sep 20, 2022

git clone PaddleSpeech
cd PaddleSpeech
# 安装依赖,安装过了可忽略
pip install . 
cd examples/csmsc/tts0
wget https://paddlespeech.bj.bcebos.com/Parakeet/released_models/pwgan/pwg_baker_ckpt_0.4.zip
unzip pwg_baker_ckpt_0.4.zip
wget https://paddlespeech.bj.bcebos.com/Parakeet/released_models/tacotron2/tacotron2_csmsc_ckpt_0.2.0.zip
unzip tacotron2_csmsc_ckpt_0.2.0.zip
mkdir -p dump/train
mkdir -p exp/default/checkpoints
cp tacotron2_csmsc_ckpt_0.2.0/snapshot_iter_30600.pdz exp/default/checkpoints
cp tacotron2_csmsc_ckpt_0.2.0/speech_stats.npy dump/train
cp tacotron2_csmsc_ckpt_0.2.0/phone_id_map.txt dump/
vim run.sh
修改 ckpt_name=snapshot_iter_30600.pdz
# 执行动转静并 load 之后进行推理
# 如果想要仅执行动态图推理,不执行动转静,注释掉 local/synthesize_e2e.sh 28 行和 27 行最后的 "\"
./run.sh --stage 3 --stop-stage 3
# 生成的静态图模型在 ./exp/default/inference
# stage 3 执行后生成的音频在 ./exp/default/test_e2e
# 静态图推理
./run.sh --stage 4 --stop-stage 4
# stage 4 执行后生成的音频在 ./exp/default/pd_infer_out
python3 -m http.server 8097 开个端口可在网页上听音频
paddle 2.3.2 正常合成,paddle commit:e1a5fb8f653c0c948abcebb3e3e252edd724f05c 合成音频内容不对

@yt605155624 yt605155624 added this to the r1.2.0 milestone Sep 20, 2022
@yt605155624 yt605155624 self-assigned this Sep 20, 2022
@yt605155624 yt605155624 marked this pull request as draft September 20, 2022 11:28
@mergify mergify bot added the T2S label Sep 20, 2022
@stale
Copy link

stale bot commented Nov 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Nov 12, 2022
@yt605155624 yt605155624 removed the Stale label Nov 29, 2022
@stale
Copy link

stale bot commented Jan 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Jan 16, 2023
@yt605155624 yt605155624 removed the Stale label Feb 1, 2023
@yt605155624 yt605155624 marked this pull request as ready for review February 22, 2023 11:28
@yt605155624 yt605155624 requested a review from lym0302 February 22, 2023 11:29
@yt605155624 yt605155624 modified the milestones: r1.2.0, r1.4.0 Feb 22, 2023
lym0302
lym0302 previously approved these changes Feb 22, 2023
@yt605155624 yt605155624 merged commit c8d5a01 into PaddlePaddle:develop Feb 23, 2023
@yt605155624 yt605155624 deleted the fix_tacotron2 branch March 7, 2023 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants