From 6e69d784e4814c3dbe35e8f70c6cf4b920c8b20b Mon Sep 17 00:00:00 2001
From: 天地 <tiandiweizun@gmail.com>
Date: 星期三, 19 三月 2025 23:10:13 +0800
Subject: [PATCH] 1. bug fix:list(mean)和list(var),由于mean和var是numpy,导致写入到文件的格式错误,参考上面的话,大概率是list(mean.tolist()),其实外层list没有必要 (#2437)

---
 funasr/models/paraformer_streaming/model.py |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/funasr/models/paraformer_streaming/model.py b/funasr/models/paraformer_streaming/model.py
index f287614..16021ce 100644
--- a/funasr/models/paraformer_streaming/model.py
+++ b/funasr/models/paraformer_streaming/model.py
@@ -50,8 +50,6 @@
 
         super().__init__(*args, **kwargs)
 
-        # import pdb;
-        # pdb.set_trace()
         self.sampling_ratio = kwargs.get("sampling_ratio", 0.2)
 
         self.scama_mask = None
@@ -83,8 +81,6 @@
                 text: (Batch, Length)
                 text_lengths: (Batch,)
         """
-        # import pdb;
-        # pdb.set_trace()
         decoding_ind = kwargs.get("decoding_ind")
         if len(text_lengths.size()) > 1:
             text_lengths = text_lengths[:, 0]

--
Gitblit v1.9.1