From 7085ee3ad98828c021aec0de041b81ef9ce2d85c Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 30 一月 2024 19:01:46 +0800
Subject: [PATCH] funasr1.0.4 emotion2vec finetuned

---
 funasr/frontends/wav_frontend.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/funasr/frontends/wav_frontend.py b/funasr/frontends/wav_frontend.py
index 9c896f1..c6e03e8 100644
--- a/funasr/frontends/wav_frontend.py
+++ b/funasr/frontends/wav_frontend.py
@@ -399,9 +399,10 @@
         return feats_pad, feats_lens, lfr_splice_frame_idxs
 
     def forward(
-        self, input: torch.Tensor, input_lengths: torch.Tensor, cache: dict = {}, **kwargs
+        self, input: torch.Tensor, input_lengths: torch.Tensor, **kwargs
     ):
         is_final = kwargs.get("is_final", False)
+        cache = kwargs.get("cache", {})
         if len(cache) == 0:
             self.init_cache(cache)
         

--
Gitblit v1.9.1