当前位置:网站首页 > 编程语言 > 正文

py文件打不开一闪就没了(py文件闪退,根本打不开)



使用的是整合包

如图所示,此前一切正常,近期不止我一人出现此类问题

根据返回结果推测是在线模型出现问题,因为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文件闪退,根本打不开)的文章就 介绍到这了,更多相关内容请继续浏览下面的相关 推荐文章,希望大家都能在编程的领域有一番成就!

版权声明


相关文章:

  • plll是什么意思(pll是啥)2025-06-02 07:54:05
  • 苹果电脑装双系统要钱吗(苹果电脑安装双系统多少钱)2025-06-02 07:54:05
  • 打印机共享修复补丁错误(打印机共享修复补丁错误怎么解决)2025-06-02 07:54:05
  • 圈1怎么打(wps圈1怎么打)2025-06-02 07:54:05
  • 网页制作代码模板(网页制作代码模板怎么做)2025-06-02 07:54:05
  • win10官方u盘启动盘制作(win10系统u盘启动盘制作)2025-06-02 07:54:05
  • m动漫什么意思(mz动漫是什么意思)2025-06-02 07:54:05
  • ewma模型的特点(elm模型的基本原则)2025-06-02 07:54:05
  • max30102传感器(MAX30102传感器原理图讲解)2025-06-02 07:54:05
  • 图标字体小怎么设置方法(图标字体怎么变大)2025-06-02 07:54:05
  • 全屏图片