-
Notifications
You must be signed in to change notification settings - Fork 5.7k
IndexError: (OutOfRange) The starting index 0 of slice is out of bounds in tensor 0-th axis, it shound be in the range of [0, 0). (at /paddle/paddle/fluid/pybind/slice_utils.h:241) #72489
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
Comments
@zxcd 可以看看这个问题吗? |
尝试使用paddlespeech==develop看下是否能够解决问题 |
直接使用pip无法安装。 Segmentation fault (core dumped) 请问怎么解决? |
@zxcd 可以麻烦看看吗? |
你这是在安装paddlespeech==develop还是paddlepaddle==develop? |
不好意思打错字了,是paddlespeech |
@zxcd 可以麻烦看看吗? |
那就应该是这个模型没有支持npu,可以尝试下支持npu的模型,比如https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/examples/csmsc/tts2/README.md |
请提出你的问题 Please ask your question
昇腾Atlas 300I Duo机器 arm
python 3.9.22
paddle环境:
paddle-custom-npu 3.0.0
paddle2onnx 2.0.1
paddleaudio 1.0.2
paddlefsl 1.1.0
paddlenlp 2.8.1
paddlepaddle 3.0.0
paddlesde 0.2.5
paddleslim 2.6.0
paddlespeech 1.4.0
paddlespeech_ctcdecoders 0.2.2
paddlespeech-feat 0.1.0
报错:
Traceback (most recent call last):
File "/work/ASR/speed_test.py", line 34, in
wav_file = tts_executor(text=text, output=output_file, am="fastspeech2_csmsc")
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/cli/utils.py", line 328, in _warpper
return executor_func(self, *args, **kwargs)
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/cli/tts/infer.py", line 710, in call
self.infer(text=text, lang=lang, am=am, spk_id=spk_id)
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddle/base/dygraph/base.py", line 400, in _decorate_function
return func(*args, **kwargs)
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/cli/tts/infer.py", line 496, in infer
mel = self.am_inference(part_phone_ids)
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddle/nn/layer/layers.py", line 1567, in call
return self.forward(*inputs, **kwargs)
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/t2s/models/fastspeech2/fastspeech2.py", line 920, in forward
normalized_mel, d_outs, p_outs, e_outs = self.acoustic_model.inference(
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/t2s/models/fastspeech2/fastspeech2.py", line 810, in inference
_, outs, d_outs, p_outs, e_outs, _ = self._forward(
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/t2s/models/fastspeech2/fastspeech2.py", line 601, in _forward
x_masks = self._source_mask(ilens)
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/t2s/models/fastspeech2/fastspeech2.py", line 891, in _source_mask
x_masks = make_non_pad_mask(ilens)
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/t2s/modules/nets_utils.py", line 259, in make_non_pad_mask
return paddle.logical_not(make_pad_mask(lengths, xs, length_dim))
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddlespeech/t2s/modules/nets_utils.py", line 147, in make_pad_mask
bs = paddle.shape(lengths)[0]
File "/root/miniforge3/envs/PaddleSpeech/lib/python3.9/site-packages/paddle/base/dygraph/tensor_patch_methods.py", line 1022, in getitem
return self._getitem_dygraph(item)
IndexError: (OutOfRange) The starting index 0 of slice is out of bounds in tensor 0-th axis, it shound be in the range of [0, 0). (at /paddle/paddle/fluid/pybind/slice_utils.h:241)
若设置export FLAGS_npu_jit_compile=false,报错:
ACL error 500002
The text was updated successfully, but these errors were encountered: