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/emotion2vec/audio.py |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/funasr/models/emotion2vec/audio.py b/funasr/models/emotion2vec/audio.py
index 316d372..d21500b 100644
--- a/funasr/models/emotion2vec/audio.py
+++ b/funasr/models/emotion2vec/audio.py
@@ -3,25 +3,21 @@
 # This source code is licensed under the MIT license found in the
 # LICENSE file in the root directory of this source tree.
 
-from typing import List, Tuple
-from functools import partial
 import torch
-import torch.nn as nn
-import torch.nn.functional as F
 import numpy as np
+import torch.nn as nn
+from functools import partial
+import torch.nn.functional as F
+from typing import Callable, Dict
 
-from typing import Callable, Dict, Optional
 from funasr.models.emotion2vec.fairseq_modules import (
     LayerNorm,
     SamePad,
     TransposeLast,
     ConvFeatureExtractionModel,
 )
-
-from funasr.models.emotion2vec.base import ModalitySpecificEncoder, get_alibi_bias
 from funasr.models.emotion2vec.modules import Modality, BlockEncoder, Decoder1d
-
-
+from funasr.models.emotion2vec.base import ModalitySpecificEncoder, get_alibi_bias
 
 
 class AudioEncoder(ModalitySpecificEncoder):

--
Gitblit v1.9.1