From 3d9f094e9652d4b84894c6fd4eae39a4a753b0f0 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 16 五月 2023 23:48:00 +0800
Subject: [PATCH] train
---
funasr/datasets/small_datasets/dataset.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/funasr/datasets/small_datasets/dataset.py b/funasr/datasets/small_datasets/dataset.py
index 5d61d88..e14e4f1 100644
--- a/funasr/datasets/small_datasets/dataset.py
+++ b/funasr/datasets/small_datasets/dataset.py
@@ -9,6 +9,7 @@
from typing import Collection
from typing import Dict
from typing import Mapping
+from typing import Optional
from typing import Tuple
from typing import Union
@@ -110,7 +111,7 @@
float_dtype: str = "float32",
int_dtype: str = "long",
dest_sample_rate: int = 16000,
- speed_perturb: tuple = None,
+ speed_perturb: Union[list, tuple] = None,
mode: str = "train",
):
assert check_argument_types()
--
Gitblit v1.9.1