mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
[fix] Fix a bug in seaco_paraformer model "inference" function (#1639)
This commit is contained in:
parent
dee1354d0d
commit
01df8f330c
@ -350,7 +350,7 @@ class SeacoParaformer(BiCifParaformer, Paraformer):
|
|||||||
pre_acoustic_embeds, pre_token_length = predictor_outs[0], predictor_outs[1]
|
pre_acoustic_embeds, pre_token_length = predictor_outs[0], predictor_outs[1]
|
||||||
pre_token_length = pre_token_length.round().long()
|
pre_token_length = pre_token_length.round().long()
|
||||||
if torch.max(pre_token_length) < 1:
|
if torch.max(pre_token_length) < 1:
|
||||||
return []
|
return ([],)
|
||||||
|
|
||||||
decoder_out = self._seaco_decode_with_ASF(encoder_out,
|
decoder_out = self._seaco_decode_with_ASF(encoder_out,
|
||||||
encoder_out_lens,
|
encoder_out_lens,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user