We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b231ca8 commit 7f5b4b9Copy full SHA for 7f5b4b9
TTS/tts/models/xtts.py
@@ -575,16 +575,6 @@ def inference(
575
return_attentions=False,
576
return_latent=True,
577
)
578
- silence_token = 83
579
- ctokens = 0
580
- for k in range(gpt_codes.shape[-1]):
581
- if gpt_codes[0, k] == silence_token:
582
- ctokens += 1
583
- else:
584
585
- if ctokens > 8:
586
- gpt_latents = gpt_latents[:, :k]
587
- break
588
589
if length_scale != 1.0:
590
gpt_latents = F.interpolate(
0 commit comments