mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
refine decoding process, merge flow and vocoder
This commit is contained in:
parent
8d30c44144
commit
e8861d71a5
@ -2377,7 +2377,7 @@ class LLMASR5(nn.Module):
|
||||
|
||||
if torch.any(top_ids == (self.codebook_size + self.ad_sos_eos)):
|
||||
hit_eos = True
|
||||
out_tokens = out_tokens[:, :out_token_len+1, :]
|
||||
out_tokens = out_tokens[:, :out_token_len, :]
|
||||
break
|
||||
|
||||
out_tokens[0, out_token_len, 0] = top_ids[0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user