#1170 RuntimeError: Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.

125.227* Posted at: 5 days ago 👁25

语音识别阶段出错:Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.[openai-whisper(本地)]:
Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 375, in recogn
File "videotrans\recognition\__init__.py", line 204, in run
File "videotrans\recognition\_base.py", line 70, in run
File "videotrans\recognition\_openai.py", line 48, in _exec
File "whisper\__init__.py", line 137, in load_model

checkpoint_file = _download(_MODELS[name], download_root, in_memory)

File "whisper\__init__.py", line 91, in _download

raise RuntimeError(

RuntimeError: Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 97, in run
File "videotrans\task\trans_create.py", line 411, in recogn
RuntimeError: Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.


=
Windows-10-10.0.26100-SP0
version:v3.80
frozen:True
language:zh

1 Replies

这个错误表明 OpenAI Whisper 模型文件在下载过程中损坏,SHA256 校验和不匹配。请按以下步骤解决:

  1. 删除损坏的模型文件

    • 进入 Whisper 模型缓存目录(通常位于 C:\Users\[用户名]\.cache\whisper
    • 删除该目录下的所有文件
  2. 重新下载模型

    • 重新启动 pyVideoTrans 软件
    • 在语音识别设置中选择 openai-whisper(本地) 并开始处理
    • 软件会自动重新下载完整的模型文件
  3. 如果下载仍然失败

    • 在软件菜单的"语音识别设置"中配置网络代理
    • 或者考虑切换到 faster-whisper(本地) 作为替代方案
  4. 手动下载(可选)

    • 可以从 Hugging Face 手动下载 Whisper 模型文件
    • 放置到正确的缓存目录中

重新下载通常能解决文件损坏问题。如果问题持续,建议使用 faster-whisper 作为替代方案。

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