#2085 Traceback (most recent call last): File "videotrans\process\_overall.py", line 44, in run File "whisper\__init__.py",

155.117* Posted at: 1 day ago 👁13

Traceback (most recent call last):
File "videotrans\process\_overall.py", line 44, in run
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 91, in _download
RuntimeError: Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.

1 Replies

这个错误表明您使用的 OpenAI Whisper 模型文件在下载过程中损坏,导致 SHA256 校验和不匹配。

核心解决方法:删除损坏的模型文件,让软件重新下载。

操作步骤:

  1. 定位模型缓存目录:

    • 打开文件资源管理器,在地址栏输入 %USERPROFILE%\.cache\whisper 并回车。
    • 或者,直接导航到 C:\Users\[你的用户名]\.cache\whisper
  2. 删除损坏的模型文件:

    • 在该目录下,找到文件名类似 large-v2.ptmedium.ptsmall.pt 的文件(具体取决于您在软件中选择的模型)。
    • 将其删除。
  3. 重新运行软件:

    • 关闭 pyVideoTrans,然后重新启动。
    • 再次执行任务时,软件会自动重新下载正确的模型文件。

预防与备选方案:

  • 网络问题: 确保下载过程中网络稳定。如果重新下载后仍失败,可能是网络连接问题,请尝试使用稳定的网络环境或代理。
  • 更换识别引擎: 如果您希望避免此类问题,可以在软件主界面的“语音识别”区域,将引擎从 openai-whisper 切换为 faster-whisper(本地)faster-whisper 是更推荐的选择,通常速度更快且更稳定。
  • 手动下载(高级): 如果自动下载始终失败,可以尝试从 Hugging Face 等镜像源手动下载对应的 .pt 模型文件,并放置到上述 .cache\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

Similar issues already exist

Trending Questions