使用的是整合包
根据返回结果推测是在线模型出现问题,因为CosyVoice需要先联网获取内容
以下为程序运行日志
D:AICosyVoice>cd CosyVoice
D:AICosyVoiceCosyVoice>..python311python.exe webui.py --port 50000
D:AICosyVoiceCosyVoicecosyvoiceclicosyvoice.py:17: UserWarning: torchaudio._backend.set_audio_backend has been deprecated. With dispatcher enabled, this function is no-op. You can remove the function call.
torchaudio.set_audio_backend('soundfile')
2024-09-12 09:33:43,081 - modelscope - INFO - PyTorch version 2.3.1+cu121 Found.
2024-09-12 09:33:43,083 - modelscope - INFO - Loading ast index from https://www.bilibili.com/read/cv/pretrained_modelsast_indexer
2024-09-12 09:33:43,183 - modelscope - INFO - Loading done! Current index file version is 1.15.0, with md5 d3ff66dede9d67503f9f177 and a total number of 980 components indexed
2024-09-12 09:33:46,238 DEBUG Starting new HTTPS connection (1): www.modelscope.cn:443
2024-09-12 09:33:46,383 DEBUG https://www.modelscope.cn:443 "GET /api/v1/models/speech_tts/CosyVoice-300M/revisions HTTP/11" 404 152
2024-09-12 09:33:46,383 - modelscope - ERROR - The request model: speech_tts/CosyVoice-300M does not exist!
Traceback (most recent call last):
File "D:AICosyVoiceCosyVoicewebui.py", line 376, in <module>
cosyvoice = CosyVoice(args.model_dir) # 在这里加载模型
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:AICosyVoiceCosyVoicecosyvoiceclicosyvoice.py", line 29, in __init__
model_dir = snapshot_download(model_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:AICosyVoicepython311Libsite-packagesmodelscopehubsnapshot_download.py", line 94, in snapshot_download
revision_detail = _api.get_valid_revision_detail(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:AICosyVoicepython311Libsite-packagesmodelscopehubapi.py", line 499, in get_valid_revision_detail
all_branches_detail, all_tags_detail = self.get_model_branches_and_tags_details(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:AICosyVoicepython311Libsite-packagesmodelscopehubapi.py", line 579, in get_model_branches_and_tags_details
handle_http_response(r, logger, cookies, model_id)
File "D:AICosyVoicepython311Libsite-packagesmodelscopehuberrors.py", line 117, in handle_http_response
raise HTTPError(http_error_msg, response=response)
requests.exceptions.HTTPError: The request model: speech_tts/CosyVoice-300M does not exist!
(自动关闭命令行)
此前出现问题解压重装就好了,现在重装也没用
到此这篇py文件打不开一闪就没了(py文件闪退,根本打不开)的文章就 介绍到这了,更多相关内容请继续浏览下面的相关 推荐文章,希望大家都能在编程的领域有一番成就!版权声明:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权、违法违规、事实不符,请将相关资料发送至xkadmin@xkablog.com进行投诉反馈,一经查实,立即处理!
转载请注明出处,原文链接:https://www.xkablog.com/bcyy/17559.html