2noise / ChatTTS

A generative speech model for daily dialogue.
https://2noise.com
Other
27k stars 2.94k forks source link

Ensuring logits scores are contiguous resolved the bug on MPS,Mac MPS bug修复 #362

Closed LeoN0425 closed 2 weeks ago

LeoN0425 commented 2 weeks ago

发现代码在Mac的MPS框架上运行时,效果很差,这是因为CustomRepetitionPenaltyLogitsProcessorRepeat的处理在MPS上,可能会发生score变量数值错误的未知异常,将其连续化scores.contiguous(), 可以解决此问题。