Skip to content

Commit

Permalink
stacked mel input for postnet
Browse files Browse the repository at this point in the history
  • Loading branch information
soobinseo authored Jan 14, 2021
1 parent 4642826 commit 7a1f23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def synthesis(text, args):
for i in pbar:
pos_mel = t.arange(1,mel_input.size(1)+1).unsqueeze(0).cuda()
mel_pred, postnet_pred, attn, stop_token, _, attn_dec = m.forward(text, mel_input, pos_text, pos_mel)
mel_input = t.cat([mel_input, postnet_pred[:,-1:,:]], dim=1)
mel_input = t.cat([mel_input, mel_pred[:,-1:,:]], dim=1)

mag_pred = m_post.forward(postnet_pred)

Expand Down

0 comments on commit 7a1f23b

Please sign in to comment.