From 87b62d68957a2194b017a43b6c2a15424a05a984 Mon Sep 17 00:00:00 2001
From: Carl <415692979@qq.com>
Date: 星期三, 27 三月 2024 19:15:47 +0800
Subject: [PATCH] <funasr>: <punc online> (#1552)
---
funasr/models/emotion2vec/modules.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/funasr/models/emotion2vec/modules.py b/funasr/models/emotion2vec/modules.py
index 33947f2..fcf99eb 100644
--- a/funasr/models/emotion2vec/modules.py
+++ b/funasr/models/emotion2vec/modules.py
@@ -4,9 +4,10 @@
# LICENSE file in the root directory of this source tree.
import torch
-import torch.nn as nn
-import torch.nn.functional as F
import numpy as np
+import torch.nn as nn
+from enum import Enum, auto
+import torch.nn.functional as F
from dataclasses import dataclass
from funasr.models.emotion2vec.fairseq_modules import (
LayerNorm,
@@ -14,12 +15,11 @@
TransposeLast,
)
-from enum import Enum, auto
+
class Modality(Enum):
AUDIO = auto()
-
@dataclass
class D2vDecoderConfig:
decoder_dim: int = 384
--
Gitblit v1.9.1