Skip to content

Commit

Permalink
Fix return gpt_latents
Browse files Browse the repository at this point in the history
  • Loading branch information
WeberJulian committed Nov 15, 2023
1 parent a8df727 commit 7cd4e24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TTS/tts/models/xtts.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,12 @@ def inference(
mode="linear"
).transpose(1, 2)

gpt_latents_list.append(gpt_latents.cpu())
wavs.append(self.hifigan_decoder(gpt_latents, g=speaker_embedding).cpu().squeeze())

return {
"wav": torch.cat(wavs, dim=0).numpy(),
"gpt_latents": torch.cat(gpt_latents_list, dim=0).numpy(),
"gpt_latents": torch.cat(gpt_latents_list, dim=1).numpy(),
"speaker_embedding": speaker_embedding,
}

Expand Down

0 comments on commit 7cd4e24

Please sign in to comment.