From fce4e1d1b48f23cd8332e60afce3df8d6209a6a7 Mon Sep 17 00:00:00 2001
From: gaochangfeng <54253717+gaochangfeng@users.noreply.github.com>
Date: 星期四, 11 四月 2024 14:59:22 +0800
Subject: [PATCH] SenseVoice对富文本解码的参数 (#1608)

---
 funasr/models/normalize/global_mvn.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/funasr/models/normalize/global_mvn.py b/funasr/models/normalize/global_mvn.py
index a9b7935..8df7c33 100644
--- a/funasr/models/normalize/global_mvn.py
+++ b/funasr/models/normalize/global_mvn.py
@@ -6,8 +6,9 @@
 import torch
 
 from funasr.models.transformer.utils.nets_utils import make_pad_mask
+from funasr.register import tables
 
-
+@tables.register("normalize_classes", "GlobalMVN")
 class GlobalMVN(torch.nn.Module):
     """Apply global mean and variance normalization
     TODO(kamo): Make this class portable somehow

--
Gitblit v1.9.1