mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
rnnt infer
This commit is contained in:
parent
4dc3a1b011
commit
e01f742a85
@ -301,9 +301,6 @@ class Speech2Text:
|
||||
feats = speech.unsqueeze(0).to(getattr(torch, self.dtype))
|
||||
feats_lengths = feats.new_full([1], dtype=torch.long, fill_value=feats.size(1))
|
||||
|
||||
if self.asr_model.normalize is not None:
|
||||
feats, feats_lengths = self.asr_model.normalize(feats, feats_lengths)
|
||||
|
||||
feats = to_device(feats, device=self.device)
|
||||
feats_lengths = to_device(feats_lengths, device=self.device)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user