From 37d6930561f4e798e76f81c37d912906c97b6bea Mon Sep 17 00:00:00 2001
From: pointerhacker <145901472+pointerhacker@users.noreply.github.com>
Date: 星期三, 20 十一月 2024 18:39:05 +0800
Subject: [PATCH] fix:添加音频码率验证以防止模型异常 (#2219)

---
 funasr/models/bicif_paraformer/cif_predictor.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/funasr/models/bicif_paraformer/cif_predictor.py b/funasr/models/bicif_paraformer/cif_predictor.py
index 3739c76..ca98cdc 100644
--- a/funasr/models/bicif_paraformer/cif_predictor.py
+++ b/funasr/models/bicif_paraformer/cif_predictor.py
@@ -198,7 +198,7 @@
             output2 = self.upsample_cnn(_output)
             output2 = output2.transpose(1, 2)
             output2, _ = self.self_attn(output2, mask)
-        # import pdb; pdb.set_trace()
+        
         alphas2 = torch.sigmoid(self.cif_output2(output2))
         alphas2 = torch.nn.functional.relu(alphas2 * self.smooth_factor2 - self.noise_threshold2)
         # repeat the mask in T demension to match the upsampled length

--
Gitblit v1.9.1