-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[S2T]安装未报错,使用就报错,这个问题折腾了3天了,真不夸张 #3577
Comments
我一年来在不同机器环境安装了不下十次。近期也安装了三五次,都没使用docker, 安装比较顺利。就是依赖包版本比较复杂,requirements依赖已经过时,运行代码各种报错需要自己研究issue排查解决。 |
版本依赖关系可以看看这个 |
我问题解决了,确实是依赖关系的问题。我是P40的GPU 最新搭配只能是paddle2.4.2 speech1.4.0 |
安装版本 +问题处理 问题处理: pip install librosa==0.10.1 2 报错信息提示:ModuleNotFoundError: No module named 'paddle.nn.layer.layers' 运行例子 [2023-12-20 17:56:33,740] [ INFO] - All model checkpoint weights were used when initializing ErnieForTokenClassification. [2023-12-20 17:56:33,740] [ INFO] - All the weights of ErnieForTokenClassification were initialized from the model checkpoint at /home/dongao/.paddlespeech/models/ernie_linear_p7_wudao-punc-zh/1.0/ernie_linear_p7_wudao-punc-zh.tar/ckpt. |
@sunqinbo 感谢分享。 |
感谢你们的帮助,问题已经处理。但愿飞浆能越来越好,相关代码和文档能更加的完善,不要跟百度搜索一样不靠谱 |
还是各种依赖问题,照理说,我装最新的stable版本 不应该出现依赖问题的—— 期望能尽快解决,或者至少给出一个requirement.txt文件来,到底依赖各种库的版本是哪个。 |
弃坑啦!!!官方环境,官方代码,搞了两天,都跑不通。 |
我在docker中安装好了paddle2.5.0 paddlespeech1.4.1 过程无报错 也使用了官方提供的示例zh.wav文件,
执行paddlespeech asr --lang zh --input ./zh.wav ,直接报如下错误,不管我重装还是怎么回事都这样,docker容器系统是ubuntu20.04,cuda11.7 cudnn8.4.1
root@8ea5a783c6ce:/paddle/asr/test# paddlespeech asr --lang zh --input ./zh.wav
W1106 20:15:33.654063 5856 gpu_resources.cc:96] The GPU architecture in your current machine is Pascal, which is not compatible with Paddle installation with arch: 70 75 80 86 , it is recommended to install the corresponding wheel package according to the installation information on the official Paddle website.
W1106 20:15:33.654111 5856 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 11.7, Runtime API Version: 11.7
W1106 20:15:33.660698 5856 gpu_resources.cc:149] device: 0, cuDNN Version: 8.4.
[2023-11-06 20:15:35,755] [ ERROR] - list index out of range
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/paddlespeech/cli/asr/infer.py", line 314, in infer
result_transcripts = self.model.decode(
File "/usr/local/lib/python3.8/dist-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/usr/local/lib/python3.8/dist-packages/paddle/fluid/dygraph/base.py", line 347, in _decorate_function
return func(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/paddlespeech/s2t/models/u2/u2.py", line 818, in decode
hyp = self.attention_rescoring(
File "/usr/local/lib/python3.8/dist-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
The text was updated successfully, but these errors were encountered: