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

fix(bug).when generating text that contains only punctuation marks or… #710

Merged
merged 7 commits into from
Dec 30, 2024

Conversation

0xCAFEBABE0
Copy link
Contributor

fix(bug).when generating text that contains only punctuation marks or whitespace characters, the CPU usage reaches 100%, and the process crashes.

… whitespace characters, the CPU usage reaches 100%, and the process crashes.
… whitespace characters, the CPU usage reaches 100%, and the process crashes.
@0xCAFEBABE0 0xCAFEBABE0 reopened this Dec 12, 2024
@aluminumbox
Copy link
Collaborator

这个检测很好,但是我会考虑直接把这个检测放到frontend.py里,如果全是标点则返回空list,后面就不会进入model.py里的tts方法

… whitespace characters, the CPU usage reaches 100%, and the process crashes.
@0xCAFEBABE0
Copy link
Contributor Author

0xCAFEBABE0 commented Dec 30, 2024

这个检测很好,但是我会考虑直接把这个检测放到frontend.py里,如果全是标点则返回空list,后面就不会进入model.py里的tts方法

@aluminumbox 好主意,已更新代码。

@aluminumbox aluminumbox merged commit 5aa3a46 into FunAudioLLM:main Dec 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants