From 2ac79cd3f312e485f3fc4f0e63313cc8a3e0bfc6 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 12 六月 2024 19:27:35 +0800
Subject: [PATCH] decoding

---
 funasr/frontends/fused.py |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/funasr/frontends/fused.py b/funasr/frontends/fused.py
index 24f73f4..0fa7639 100644
--- a/funasr/frontends/fused.py
+++ b/funasr/frontends/fused.py
@@ -7,14 +7,10 @@
 
 
 class FusedFrontends(nn.Module):
-    def __init__(
-        self, frontends=None, align_method="linear_projection", proj_dim=100, fs=16000
-    ):
+    def __init__(self, frontends=None, align_method="linear_projection", proj_dim=100, fs=16000):
 
         super().__init__()
-        self.align_method = (
-            align_method  # fusing method : linear_projection only for now
-        )
+        self.align_method = align_method  # fusing method : linear_projection only for now
         self.proj_dim = proj_dim  # dim of the projection done on each frontend
         self.frontends = []  # list of the frontends to combine
 
@@ -109,9 +105,7 @@
                 input_feats, feats_lens = frontend.forward(input, input_lengths)
             self.feats.append([input_feats, feats_lens])
 
-        if (
-            self.align_method == "linear_projection"
-        ):  # TODO(Dan): to add other align methods
+        if self.align_method == "linear_projection":  # TODO(Dan): to add other align methods
 
             # first step : projections
             self.feats_proj = []
@@ -141,4 +135,4 @@
         else:
             raise NotImplementedError
 
-        return input_feats, feats_lens
\ No newline at end of file
+        return input_feats, feats_lens

--
Gitblit v1.9.1