From dec1c875b2fcf0161755b93717d3eac856c6d15d Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 31 一月 2024 22:40:19 +0800
Subject: [PATCH] Funasr1.0 bugfix, audio sample input for the vad model (#1333)
---
funasr/models/e_branchformer/encoder.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/funasr/models/e_branchformer/encoder.py b/funasr/models/e_branchformer/encoder.py
index 5604c9f..4084e21 100644
--- a/funasr/models/e_branchformer/encoder.py
+++ b/funasr/models/e_branchformer/encoder.py
@@ -42,7 +42,7 @@
TooShortUttError,
check_short_utt,
)
-from funasr.utils.register import register_class
+from funasr.register import tables
class EBranchformerEncoderLayer(torch.nn.Module):
"""E-Branchformer encoder layer module.
@@ -174,7 +174,7 @@
return x, mask
-@register_class("encoder_classes", "EBranchformerEncoder")
+@tables.register("encoder_classes", "EBranchformerEncoder")
class EBranchformerEncoder(nn.Module):
"""E-Branchformer encoder module."""
--
Gitblit v1.9.1