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

unexpected end at index #543

Closed
yuguosen opened this issue Jul 7, 2024 · 8 comments
Closed

unexpected end at index #543

yuguosen opened this issue Jul 7, 2024 · 8 comments
Labels
documentation Improvements or additions to documentation

Comments

@yuguosen
Copy link

yuguosen commented Jul 7, 2024

Text input: ["post like top youtubers and accelerate your growth with top,quality hooks. don't let capcut hold you back, a great hook is ninety-nine percent of what makes your video go viral", ' 比如甜水面、赖汤圆、蛋烘糕、叶儿粑等,这些小吃口味温和,甜而不腻,也很受欢迎']

使用api的示例代码,单独跑每一个都没问题,但是放在一起就一直报
code: 0%| | 0/2048(max) [00:00, ?it/s]unexpected end at index [1]
code: 0%| | 0/2048(max) [00:00, ?it/s]
regenerate in order to ensure non-empty
code: 0%| | 0/2048(max) [00:00, ?it/s]unexpected end at index [1]
code: 0%| | 0/2048(max) [00:00, ?it/s]
regenerate in order to ensure non-empty
code: 0%| | 0/2048(max) [00:00, ?it/s]unexpected end at index [1]
code: 0%| | 0/2048(max) [00:00, ?it/s]

@fumiama fumiama added the documentation Improvements or additions to documentation label Jul 7, 2024
@fumiama
Copy link
Member

fumiama commented Jul 7, 2024

这是为了跑出来的结果不为空而设的检查,详见 #511。如果最终可以得到正常的结果,可以忽略此警告。

@cailuyu
Copy link

cailuyu commented Jul 9, 2024

这是为了跑出来的结果不为空而设的检查,详见 #511。如果最终可以得到正常的结果,可以忽略此警告。

这个场景下经常会爆显存!

@fumiama
Copy link
Member

fumiama commented Jul 9, 2024

这个场景下经常会爆显存!

爆显存问题有待解决。目前可先调低batch数,以显著减少尝试频次。

@cailuyu
Copy link

cailuyu commented Jul 9, 2024

这个场景下经常会爆显存!

爆显存问题有待解决。目前可先调低batch数,以显著减少尝试频次。

就2条都会爆的,感觉代码递归调用了。
这个问题不如暂时让用户自己重新预测,我暂时把ensure_non_empty改false了

zhzLuke96 added a commit to lenML/Speech-AI-Forge that referenced this issue Jul 12, 2024
- 不走 ensure_non_empty 逻辑

可能没法完全解决 none 问题

ref 2noise/ChatTTS#543
@zxs-learn
Copy link

zxs-learn commented Jul 19, 2024

这是为了跑出来的结果不为空而设的检查,详见 #511。如果最终可以得到正常的结果,可以忽略此警告。

关键是一直卡在 0% 不能生成了, 有什么解决方案么,谢谢

@fumiama fumiama closed this as completed by moving to Done in ChatTTS Aug 1, 2024
@AdamMayor2018
Copy link

AdamMayor2018 commented Aug 3, 2024

我按照fix642改了代码还是出现unexpected end at index [0]和显存爆炸问题。
在我的场景中,设置speed0就不会有问题,设置speed1就会有问题。我测试了很多次,短句配合speed>1会更容易出现这个问题。

@fumiama
Copy link
Member

fumiama commented Aug 3, 2024

我按照fix642改了代码还是出现unexpected end at index [0]和显存爆炸问题。

如果你固定了生成种子,那么无论生成多少次,都会是 unexpected end at index [0] 的结果。我已经在dev发了一个修复,就是在检测到自定义种子时自动无效化ensure_non_empty: c140a0b

@fumiama
Copy link
Member

fumiama commented Aug 3, 2024

此时不要自己调用torch.manual_seed, 给RefineTextParams/InferCodeParams传入manual_seed参数即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done
Development

No branches or pull requests

5 participants