Explorar o código

Update wav_frontend.py

update wav_frontend online
hnluo %!s(int64=2) %!d(string=hai) anos
pai
achega
51e80c1667
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      funasr/models/frontend/wav_frontend.py

+ 1 - 1
funasr/models/frontend/wav_frontend.py

@@ -395,7 +395,7 @@ class WavFrontendOnline(AbsFrontend):
         return feats_pad, feats_lens, lfr_splice_frame_idxs
 
     def forward(
-        self, input: torch.Tensor, input_lengths: torch.Tensor, is_final: bool = False, reset: bool = True
+        self, input: torch.Tensor, input_lengths: torch.Tensor, is_final: bool = False, reset: bool = False
     ) -> Tuple[torch.Tensor, torch.Tensor]:
         if reset:
             self.cache_reset()