From 810046e3df4910c8f5c1a90e4b53aca45b3397e8 Mon Sep 17 00:00:00 2001
From: wuhongsheng <664116298@qq.com>
Date: 星期一, 01 七月 2024 10:42:58 +0800
Subject: [PATCH] 优化merge segments 参数,解决新闻联播男女主持人“晚上好”合并一个speakid问题 (#1861)

---
 funasr/frontends/utils/feature_transform.py |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/funasr/frontends/utils/feature_transform.py b/funasr/frontends/utils/feature_transform.py
index a3ee260..ab1486b 100644
--- a/funasr/frontends/utils/feature_transform.py
+++ b/funasr/frontends/utils/feature_transform.py
@@ -36,9 +36,7 @@
             self.global_mvn = None
 
         if self.apply_uttmvn is not None:
-            self.uttmvn = UtteranceMVN(
-                norm_means=uttmvn_norm_means, norm_vars=uttmvn_norm_vars
-            )
+            self.uttmvn = UtteranceMVN(norm_means=uttmvn_norm_means, norm_vars=uttmvn_norm_vars)
         else:
             self.uttmvn = None
 
@@ -191,9 +189,7 @@
 
 
 class UtteranceMVN(torch.nn.Module):
-    def __init__(
-        self, norm_means: bool = True, norm_vars: bool = False, eps: float = 1.0e-20
-    ):
+    def __init__(self, norm_means: bool = True, norm_vars: bool = False, eps: float = 1.0e-20):
         super().__init__()
         self.norm_means = norm_means
         self.norm_vars = norm_vars

--
Gitblit v1.9.1