From 00ea1186f96e6732e2edb4fab6c0ed6896e3b352 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 19 十二月 2023 22:53:18 +0800
Subject: [PATCH] funasr2

---
 funasr/models/specaug/specaug.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/funasr/models/specaug/specaug.py b/funasr/models/specaug/specaug.py
index e5da8e2..17f2657 100644
--- a/funasr/models/specaug/specaug.py
+++ b/funasr/models/specaug/specaug.py
@@ -7,9 +7,11 @@
 from funasr.models.specaug.mask_along_axis import MaskAlongAxisVariableMaxWidth
 from funasr.models.specaug.mask_along_axis import MaskAlongAxisLFR
 from funasr.models.specaug.time_warp import TimeWarp
+from funasr.utils.register import register_class
 
 import torch.nn as nn
 
+@register_class("specaug_classes", "SpecAug")
 class SpecAug(nn.Module):
     """Implementation of SpecAug.
 
@@ -99,7 +101,8 @@
             x, x_lengths = self.time_mask(x, x_lengths)
         return x, x_lengths
 
-class SpecAugLFR(AbsSpecAug):
+@register_class("specaug_classes", "SpecAugLFR")
+class SpecAugLFR(nn.Module):
     """Implementation of SpecAug.
     lfr_rate锛歭ow frame rate
     """

--
Gitblit v1.9.1