Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用时,报错: IndexError: list index out of range #3754

Open
hgguyu opened this issue Apr 25, 2024 · 2 comments
Open

使用时,报错: IndexError: list index out of range #3754

hgguyu opened this issue Apr 25, 2024 · 2 comments

Comments

@hgguyu
Copy link

hgguyu commented Apr 25, 2024

环境
python 3.9
paddlepaddle 2.6.1
paddlespeech 1.4.1

安装期间,已经解决了
1、setuptools_scm 报错问题
2、numpy 版本过高问题 : module 'numpy' has no attribute 'complex'

使用时,报了下面错误:
paddlespeech asr --lang zh --input zh.wav
[2024-04-25 13:39:18,021] [ ERROR] - list index out of range
Traceback (most recent call last):
File "/root/tools/venv/lib/python3.9/site-packages/paddlespeech/cli/asr/infer.py", line 314, in infer
result_transcripts = self.model.decode(
File "/root/tools/venv/lib/python3.9/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/root/tools/venv/lib/python3.9/site-packages/paddle/base/dygraph/base.py", line 352, in _decorate_function
return func(*args, **kwargs)
File "/root/tools/venv/lib/python3.9/site-packages/paddlespeech/s2t/models/u2/u2.py", line 818, in decode
hyp = self.attention_rescoring(
File "/root/tools/venv/lib/python3.9/site-packages/paddlespeech/s2t/models/u2/u2.py", line 532, in attention_rescoring
assert speech.shape[0] == speech_lengths.shape[0]
IndexError: list index out of range

@Ray961123
Copy link

开发者你好,感谢关注 PaddleSpeech 开源项目,抱歉给你带来了不好的开发体验,目前开源项目维护人力有限,建议参考:#3577

@yaowt05
Copy link

yaowt05 commented May 1, 2024

你的paddlepaddle版本太高了,只支持paddlepaddle<2.5.0的版本,需要通过源码编译的方式安装paddlespeech才可以支持高版本paddlepaddle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants