From 980007a486a4a2cfbcf4f98c7a88e28e17fd0f48 Mon Sep 17 00:00:00 2001
From: Shi Xian <40013335+R1ckShi@users.noreply.github.com>
Date: 星期四, 21 三月 2024 14:59:46 +0800
Subject: [PATCH] update seaco finetune (#1526)
---
funasr/models/branchformer/model.py | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/funasr/models/branchformer/model.py b/funasr/models/branchformer/model.py
index a14b407..7fa99b3 100644
--- a/funasr/models/branchformer/model.py
+++ b/funasr/models/branchformer/model.py
@@ -1,16 +1,16 @@
import logging
from funasr.models.transformer.model import Transformer
-from funasr.utils.register import register_class
+from funasr.register import tables
-@register_class("model_classes", "Branchformer")
+@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