Skip to content

load_audio_text_image_video 存在bug #2724

@shell-nlp

Description

@shell-nlp

text = load_audio_text_image_video(data_in, data_type=kwargs.get("kwargs", "text"))[0]

这行代码可能存在bug,

load_audio_text_image_video 的返回值是个 torch 类型,

elif isinstance(data_or_path_or_list, np.ndarray):  # audio sample point
        data_or_path_or_list = torch.from_numpy(data_or_path_or_list)  # .squeeze()  # [n_samples,]

但是

tokens = split_words(text, jieba_usr_dict=self.jieba_usr_dict)

这里 却对 torch tensor 类型进行 split_words

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions