mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-06-03 20:40:30 +08:00
Merge branch 'main' of https://github.com/RVC-Boss/GPT-SoVITS into fallback_fix
This commit is contained in:
commit
2ed4f74741
@ -711,7 +711,7 @@ class Text2SemanticDecoder(nn.Module):
|
||||
attn_mask = F.pad(attn_mask, (0, 1), value=False)
|
||||
|
||||
if idx < 11: ###至少预测出10个token不然不给停止(0.4s)
|
||||
logits = logits[:, :-1]
|
||||
logits[:, -1] = float("-inf")
|
||||
|
||||
samples = sample(
|
||||
logits, y, top_k=top_k, top_p=top_p, repetition_penalty=repetition_penalty, temperature=temperature
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user