You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question:
[rank0]: File "/home/jovyan/.conda/envs/funasr/lib/python3.11/site-packages/funasr/models/sense_voice/model.py", line 758, in encode
[rank0]: [[self.textnorm_int_dict[int(style)]] for style in text[:, 3]]
[rank0]: ~~~~^^^^^^
[rank0]: IndexError: index 3 is out of bounds for dimension 1 with size 2
What have you tried?
1.I try to print the shape of text:
torch.Size([82, 3])
torch.Size([89, 2])
2.I try to add text_language, emo and event in the jsonl file:
e.g
{"key": "wechat_msg_chunk_12135561624217528293_1709826135802_external_left_chunk_32_16k_real_8k_alaw__629597", "source": "/home/jovyan/jonneryr/asr/sales/data/train/label/train_wavs_wer_less_than_5_16k/wechat_msg_chunk_12135561624217528293_1709826135802_external_left_chunk_32_16k_real_8k_alaw_.wav", "source_len": 261, "target": "零六没有", "target_len": 4, "emo_target": "<|NEUTRAL|>", "emo_target_len": 11, "event_target": "<|Speech|>", "event_target_len": 10, "text_language": "<|zh|>", "text_language_len": 6}
What's your environment?
OS (e.g., Linux):Linux
FunASR Version (e.g., 1.0.0):1.1.14
ModelScope Version (e.g., 1.11.0):1.19.2
PyTorch Version (e.g., 2.0.0):2.5.1
How you installed funasr (pip, source):pip
Python version:3.11
GPU (e.g., V100M32) A800
CUDA/cuDNN version (e.g., cuda11.7):cuda12.4
Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1)
Any other relevant information:
The text was updated successfully, but these errors were encountered:
Question:
[rank0]: File "/home/jovyan/.conda/envs/funasr/lib/python3.11/site-packages/funasr/models/sense_voice/model.py", line 758, in encode
[rank0]: [[self.textnorm_int_dict[int(style)]] for style in text[:, 3]]
[rank0]: ~~~~^^^^^^
[rank0]: IndexError: index 3 is out of bounds for dimension 1 with size 2
What have you tried?
1.I try to print the shape of text:
torch.Size([82, 3])
torch.Size([89, 2])
2.I try to add text_language, emo and event in the jsonl file:
e.g
{"key": "wechat_msg_chunk_12135561624217528293_1709826135802_external_left_chunk_32_16k_real_8k_alaw__629597", "source": "/home/jovyan/jonneryr/asr/sales/data/train/label/train_wavs_wer_less_than_5_16k/wechat_msg_chunk_12135561624217528293_1709826135802_external_left_chunk_32_16k_real_8k_alaw_.wav", "source_len": 261, "target": "零六没有", "target_len": 4, "emo_target": "<|NEUTRAL|>", "emo_target_len": 11, "event_target": "<|Speech|>", "event_target_len": 10, "text_language": "<|zh|>", "text_language_len": 6}
What's your environment?
pip
, source):pipThe text was updated successfully, but these errors were encountered: