From ae7aff2e9cf6c79cf61e18cdc60ce68cf9f98400 Mon Sep 17 00:00:00 2001
From: majic31 <majic31@163.com>
Date: 星期二, 24 十二月 2024 17:51:11 +0800
Subject: [PATCH] fix: solve problems in sensevoice_bin.py related to argmax and unique, as mentioned in issue #2331 (#2332)
---
funasr/models/branchformer/model.py | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/funasr/models/branchformer/model.py b/funasr/models/branchformer/model.py
index 53f254d..f7e4b36 100644
--- a/funasr/models/branchformer/model.py
+++ b/funasr/models/branchformer/model.py
@@ -3,14 +3,15 @@
from funasr.models.transformer.model import Transformer
from funasr.register import tables
+
@tables.register("model_classes", "Branchformer")
class Branchformer(Transformer):
- """CTC-attention hybrid Encoder-Decoder model"""
+ """CTC-attention hybrid Encoder-Decoder model"""
- def __init__(
- self,
- *args,
- **kwargs,
- ):
+ def __init__(
+ self,
+ *args,
+ **kwargs,
+ ):
- super().__init__(*args, **kwargs)
+ super().__init__(*args, **kwargs)
--
Gitblit v1.9.1