志浩
2023-03-16 0ac06c029edb57e2dcacd64da2a05869a2f7364d
fixbug path_name_type_list can [[any,str,str],[any,str,str]]
1个文件已修改
3 ■■■■ 已修改文件
funasr/datasets/iterable_dataset.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/datasets/iterable_dataset.py
@@ -8,6 +8,7 @@
from typing import Iterator
from typing import Tuple
from typing import Union
from typing import List
import kaldiio
import numpy as np
@@ -127,7 +128,7 @@
        non_iterable_list = []
        self.path_name_type_list = []
        if not isinstance(path_name_type_list[0], Tuple):
        if not isinstance(path_name_type_list[0], (Tuple, List)):
            path = path_name_type_list[0]
            name = path_name_type_list[1]
            _type = path_name_type_list[2]