mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-28 17:45:02 +08:00
fix: idx error when do repetition penalty (#738)
Co-authored-by: Ubuntu <zhn@zhn-a100.loq3xmynzuheffxht14poc5q4c.lx.internal.cloudapp.net>
This commit is contained in:
@@ -526,6 +526,7 @@ class ModelRunner:
|
||||
for i in range(self.post_model.num_vq)
|
||||
]
|
||||
input_emb = torch.stack(code_emb, 3).sum(3)
|
||||
start_idx = input_tokens_history.shape[-2] - 1 if input_tokens_history.shape[-2] > 0 else 0
|
||||
else:
|
||||
input_emb = self.post_model(input_tokens, text_mask)
|
||||
# print(input_emb.shape)
|
||||
|
||||
Reference in New Issue
Block a user