You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/root/autodl-tmp/tts/ChatTTS-Forge/modules/api/impl/refiner_api.py", line 33, in refiner_prompt_post
refined_text = refiner.refine_text(
File "/root/autodl-tmp/tts/ChatTTS-Forge/venv/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/root/autodl-tmp/tts/ChatTTS-Forge/modules/refiner.py", line 26, in refine_text
sentences = spliter.parse(text)
File "/root/autodl-tmp/tts/ChatTTS-Forge/modules/core/tools/SentenceSplitter.py", line 35, in parse
sentences = self.merge_text_by_threshold(sentences)
File "/root/autodl-tmp/tts/ChatTTS-Forge/modules/core/tools/SentenceSplitter.py", line 48, in merge_text_by_threshold
if self.len(temp_sentence) + self.len(sentence) < self.sentence_threshold:
File "/root/autodl-tmp/tts/ChatTTS-Forge/modules/core/tools/SentenceSplitter.py", line 31, in len
return len(self.tokenizer(text))
File "/root/autodl-tmp/tts/ChatTTS-Forge/modules/core/tools/SentenceSplitter.py", line 10, in char_tokenizer
return [ord(char) forcharin text.split("")]
ValueError: empty separator
The text was updated successfully, but these errors were encountered:
确认清单
Forge Commit 或者 Tag
Commits on Jul 26, 2024
Python 版本
1
PyTorch 版本
1
操作系统信息
linux
BUG 描述
异常
BUG 端点
1
复现参数
data = {
'text': 中华美食,作为世界饮食文化的瑰宝,以其丰富的种类、独特的风味和精湛的烹饪技艺而闻名于世。中国地大物博,各地区的饮食习惯和烹饪方法各具特色,形成了独树一帜的美食体系。从北方的京鲁菜、东北菜,到南方的粤菜、闽菜,无不展现出中华美食的多样性,
'prompt': [oral_2][break_3][laugh_0],
"seed": -1,
"top_P": 0.7,
"top_K": 20,
"temperature": 0.000000001,
"repetition_penalty": 1,
"max_new_token": 384,
"normalize": True,
}
期望结果
返回数据
实际结果
修改后
错误信息
The text was updated successfully, but these errors were encountered: