GPT-SoVITS icon indicating copy to clipboard operation
GPT-SoVITS copied to clipboard

Vscode api.py 500 Internal Server Error RuntimeError: The size of tensor a (1268) must match the size of tensor b (512) at non-singleton dimension 1

Open xiaolongww opened this issue 1 year ago • 3 comments

问题:在vscode中启动api.py,使用apifox调用接口出现报错,报错日志见下方txt image 推测:字数太长导致,接口在132字下工作正常。但是网页端推理时能够使用长文本(试过1320字)正常合成 image 报错.txt

请问大家有遇到类似问题吗,求解答,感激不尽!

xiaolongww avatar Feb 20 '24 02:02 xiaolongww

试了一下492字果然没报错,而超出512字如539字时就报错了

xiaolongww avatar Feb 20 '24 03:02 xiaolongww

知道了,如果当成1句来合成会报错,当选择四句一切就正常了

xiaolongww avatar Feb 22 '24 10:02 xiaolongww

文本太长bert提取会出错。 不行,我得限制文本长度如果太长强制切分。 感谢楼主提供的最大492字的信息。

RVC-Boss avatar Feb 22 '24 15:02 RVC-Boss