#721 RuntimeError: 可能网络原因模型下载中断,请尝试删掉models文件夹内相应模型文件夹,然后重试

*8a6c:44* Posted at: 3 hours ago 👁10

语音识别阶段出错:可能网络原因模型下载中断,请尝试删掉models文件夹内相应模型文件夹,然后重试[faster-whisper(本地)]:

Traceback (most recent call last):

File "videotrans\task\job.py", line 97, in run

File "videotrans\task\_speech2text.py", line 93, in recogn

File "videotrans\recognition\__init__.py", line 250, in run

File "videotrans\recognition\_base.py", line 70, in run

File "videotrans\recognition\_overall.py", line 144, in _exec

RuntimeError: 可能网络原因模型下载中断,请尝试删掉models文件夹内相应模型文件夹,然后重试

=====

Windows-10-10.0.19042-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这是 pyVideoTrans 在使用 faster-whisper(本地) 模式进行语音识别时,因模型下载失败导致的常见问题。由于国内网络访问 Hugging Face 模型库不稳定,导致模型文件下载不完整。

核心解决方案:

请按照以下步骤操作,选择最适合您网络状况的一种方法:

1. (推荐)使用专用下载工具:这是最简便的方法。

  • 请访问 专用模型下载页面
  • 根据您的网络情况,下载对应的 faster-whisper-xxl.exe 工具(一个用于镜像站,一个用于官网)。
  • 将下载的 .exe 文件与 sp.exe 主程序放在同一目录下,然后双击运行,它会自动完成模型下载。

2. (需科学上网)从 Hugging Face 官网下载

  • 如果您可以科学上网,请在软件同目录下创建一个名为 huggingface.lock 的空文件(注意后缀是 .lock,不是 .txt)。
  • 然后删除 models 文件夹内出错的模型文件夹(通常是 faster-whisper 或类似名称的文件夹),重新启动软件任务。

3. 手动下载压缩包

  • 前往 GitHub 发布页:https://github.com/jianchang512/stt/releases/tag/0.0
  • 下载您所需模型的压缩包(例如 faster-whisper-large-v3.zip)。
  • 解压后,将整个文件夹放入软件的 models 目录中。请务必确保解压后的文件夹结构正确,模型文件应直接位于该文件夹内。

完成上述任一操作后,再次运行语音识别任务即可。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions