From 380a5d5475880c377a089dbd0866a8d6cdf64c6d Mon Sep 17 00:00:00 2001 From: James Betker Date: Fri, 3 Dec 2021 08:53:09 -0700 Subject: [PATCH] gdi.. --- codes/models/gpt_voice/gpt_tts_hf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/models/gpt_voice/gpt_tts_hf.py b/codes/models/gpt_voice/gpt_tts_hf.py index 1e6f3611..315f1e27 100644 --- a/codes/models/gpt_voice/gpt_tts_hf.py +++ b/codes/models/gpt_voice/gpt_tts_hf.py @@ -71,7 +71,7 @@ class GptTtsHf(nn.Module): conds = torch.stack(conds, dim=1) conds = conds + self.conditioning_embedding(torch.arange(conds.shape[1], device=conds.device)) - emb = torch.cat([mel_emb, conds, text_emb], dim=1) + emb = torch.cat([text_emb, conds, mel_emb], dim=1) gpt_out = self.gpt(inputs_embeds=emb, return_dict=True, output_attentions=get_attns) if get_attns: return gpt_out.attentions