From 060d18ee4b86729e11f31ff16c822f3be33503ae Mon Sep 17 00:00:00 2001
From: 语帆 <yf352572@alibaba-inc.com>
Date: 星期四, 22 二月 2024 16:36:40 +0800
Subject: [PATCH] test
---
funasr/frontends/default.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/funasr/frontends/default.py b/funasr/frontends/default.py
index 8ac1ca8..ab5b731 100644
--- a/funasr/frontends/default.py
+++ b/funasr/frontends/default.py
@@ -3,7 +3,6 @@
from typing import Tuple
from typing import Union
import logging
-import humanfriendly
import numpy as np
import torch
import torch.nn as nn
@@ -16,8 +15,10 @@
from funasr.frontends.utils.stft import Stft
from funasr.frontends.utils.frontend import Frontend
from funasr.models.transformer.utils.nets_utils import make_pad_mask
+from funasr.register import tables
+@tables.register("frontend_classes", "DefaultFrontend")
class DefaultFrontend(nn.Module):
"""Conventional frontend structure for ASR.
Stft -> WPE -> MVDR-Beamformer -> Power-spec -> Mel-Fbank -> CMVN
@@ -40,6 +41,7 @@
frontend_conf: Optional[dict] = None,
apply_stft: bool = True,
use_channel: int = None,
+ **kwargs,
):
super().__init__()
if isinstance(fs, str):
--
Gitblit v1.9.1