aky15 %!s(int64=2) %!d(string=hai) anos
pai
achega
e01f742a85
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      funasr/bin/asr_inference_rnnt.py

+ 0 - 3
funasr/bin/asr_inference_rnnt.py

@@ -301,9 +301,6 @@ class Speech2Text:
         feats = speech.unsqueeze(0).to(getattr(torch, self.dtype))
         feats = speech.unsqueeze(0).to(getattr(torch, self.dtype))
         feats_lengths = feats.new_full([1], dtype=torch.long, fill_value=feats.size(1))
         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 = to_device(feats, device=self.device)
         feats_lengths = to_device(feats_lengths, device=self.device)
         feats_lengths = to_device(feats_lengths, device=self.device)