2noise / ChatTTS

A generative speech model for daily dialogue.
https://2noise.com
GNU Affero General Public License v3.0
31.16k stars 3.39k forks source link

TypeError: load_models() got an unexpected keyword argument 'sourc #142

Closed YangKeAng closed 1 month ago

YangKeAng commented 4 months ago

2024-05-31 22:00:21,251 - modelscope - INFO - PyTorch version 2.2.1+cu118 Found. 2024-05-31 22:00:21,253 - modelscope - INFO - Loading ast index from C:\Users\WongJ.cache\modelscope\ast_indexer 2024-05-31 22:00:21,398 - modelscope - INFO - Loading done! Current index file version is 1.14.0, with md5 1dc625ae51c37a4717218d26c94fe70f and a total number of 976 components indexed Traceback (most recent call last): File "e:\pyfile\ChatTTS-main\ChatTTS\test01.py", line 30, in chat.load_models( TypeError: load_models() got an unexpected keyword argument 'source'

请问如何解决,感谢!!!

YangKeAng commented 4 months ago

The problem has been resolved,u need to mv test01.py to root directory ,and run it.

Siddz-17 commented 3 months ago

How to do it? i got problem: chat.load_models(compile=False) TypeError: Chat.load_models() got an unexpected keyword argument 'force_redownload' What can i do??

YangKeAng commented 3 months ago

How to do it? i got problem: chat.load_models(compile=False) TypeError: Chat.load_models() got an unexpected keyword argument 'force_redownload' What can i do??

Maybe u need to download pre trained model ,and use it in your code(tes01t.py).mv test01.py to root directory ,and run it. But the ChatTTS'code has been modified.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 15 days since being marked as stale.