Skip to content

Commit 7f5b4b9

Browse files
committed
Remove ununsed code
1 parent b231ca8 commit 7f5b4b9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Diff for: TTS/tts/models/xtts.py

-10
Original file line numberDiff line numberDiff line change
@@ -575,16 +575,6 @@ def inference(
575575
return_attentions=False,
576576
return_latent=True,
577577
)
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-
ctokens = 0
585-
if ctokens > 8:
586-
gpt_latents = gpt_latents[:, :k]
587-
break
588578

589579
if length_scale != 1.0:
590580
gpt_latents = F.interpolate(

0 commit comments

Comments
 (0)