首页 Paddle框架 帖子详情
paddlespeech生成中英混合tts时报错,单中文没问题
收藏
快速回复
Paddle框架 问答深度学习 560 0
paddlespeech生成中英混合tts时报错,单中文没问题
收藏
快速回复
Paddle框架 问答深度学习 560 0

... am='fastspeech2_mix',
... voc='hifigan_csmsc',
... output='output3.3.wav',
... lang='mix',
... spk_id=174)
[2023-09-05 17:26:59,842] [ INFO] - Already cached /root/.paddlenlp/models/bert-base-chinese/bert-base-chinese-vocab.txt
[2023-09-05 17:26:59,870] [ INFO] - tokenizer config file saved in /root/.paddlenlp/models/bert-base-chinese/tokenizer_config.json
[2023-09-05 17:26:59,871] [ INFO] - Special tokens file saved in /root/.paddlenlp/models/bert-base-chinese/special_tokens_map.json
I0905 17:27:03.017897 18006 eager_method.cc:140] Warning:: 0D Tensor cannot be used as 'Tensor.numpy()[0]' . In order to avoid this problem, 0D Tensor will be changed to 1D numpy currently, but it's not correct and will be removed in release 2.6. For Tensor contain only one element, Please modify 'Tensor.numpy()[0]' to 'float(Tensor)' as soon as possible, otherwise 'Tensor.numpy()[0]' will raise error in release 2.6.
I0905 17:27:03.018604 18006 eager_method.cc:140] Warning:: 0D Tensor cannot be used as 'Tensor.numpy()[0]' . In order to avoid this problem, 0D Tensor will be changed to 1D numpy currently, but it's not correct and will be removed in release 2.6. For Tensor contain only one element, Please modify 'Tensor.numpy()[0]' to 'float(Tensor)' as soon as possible, otherwise 'Tensor.numpy()[0]' will raise error in release 2.6.
/usr/local/python3910/lib/python3.9/site-packages/paddle/nn/layer/layers.py:1897: UserWarning: Skip loading for encoder.embed.1.alpha. encoder.embed.1.alpha receives a shape [1], but the expected shape is [].
warnings.warn(f"Skip loading for {key}. " + str(err))
/usr/local/python3910/lib/python3.9/site-packages/paddle/nn/layer/layers.py:1897: UserWarning: Skip loading for decoder.embed.0.alpha. decoder.embed.0.alpha receives a shape [1], but the expected shape is [].
warnings.warn(f"Skip loading for {key}. " + str(err))
Building prefix dict from the default dictionary ...
[2023-09-05 17:27:09,458] [ DEBUG] __init__.py:113 - Building prefix dict from the default dictionary ...
Loading model from cache /tmp/jieba.cache
[2023-09-05 17:27:09,459] [ DEBUG] __init__.py:132 - Loading model from cache /tmp/jieba.cache
Loading model cost 0.999 seconds.
[2023-09-05 17:27:10,457] [ DEBUG] __init__.py:164 - Loading model cost 0.999 seconds.
Prefix dict has been built successfully.
[2023-09-05 17:27:10,457] [ DEBUG] __init__.py:166 - Prefix dict has been built successfully.
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/python3910/lib/python3.9/site-packages/paddlespeech/cli/utils.py", line 328, in _warpper
return executor_func(self, *args, **kwargs)
File "/usr/local/python3910/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 "/usr/local/python3910/lib/python3.9/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/usr/local/python3910/lib/python3.9/site-packages/paddle/fluid/dygraph/base.py", line 347, in _decorate_function
return func(*args, **kwargs)
File "/usr/local/python3910/lib/python3.9/site-packages/paddlespeech/cli/tts/infer.py", line 493, in infer
mel = self.am_inference(
File "/usr/local/python3910/lib/python3.9/site-packages/paddle/nn/layer/layers.py", line 1254, in __call__
return self.forward(*inputs, **kwargs)
File "/usr/local/python3910/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 "/usr/local/python3910/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 "/usr/local/python3910/lib/python3.9/site-packages/paddlespeech/t2s/models/fastspeech2/fastspeech2.py", line 618, in _forward
hs = self._integrate_with_spk_embed(hs, spk_emb)
File "/usr/local/python3910/lib/python3.9/site-packages/paddlespeech/t2s/models/fastspeech2/fastspeech2.py", line 840, in _integrate_with_spk_embed
spk_emb = F.normalize(spk_emb).unsqueeze(1).expand(
File "/usr/local/python3910/lib/python3.9/site-packages/paddle/nn/functional/norm.py", line 82, in normalize
out = _C_ops.p_norm(x, float(p), axis, epsilon, True, False)
ValueError: (InvalidArgument) Attr(axis) value should be in range [-R, R-1], R is the rank of Input(X). But received axis: 1, R: 1. Current Input(X)'s shape is=[256].
[Hint: Expected axis < x_rank, but received axis:1 >= x_rank:1.] (at /paddle/paddle/phi/infermeta/unary.cc:2763)

 

0
收藏
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户