#2908 RuntimeError: Unable to open file 'model.bin' in model 'D:/win-pyvideotrans-v3.95/models/models--Systran--faster-whisper

240e:3bb* Posted at: 23 hours ago 👁10

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 177, in faster_whisper
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: Unable to open file 'model.bin' in model 'D:/win-pyvideotrans-v3.95/models/models--Systran--faster-whisper-large-v1'


=
system:Windows-10-10.0.19045-SP0
version:v3.95
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.95

1 Replies

这是由于 faster-whisper 模型文件 model.bin 缺失或损坏导致的。模型文件下载不完整或路径不正确。

解决方案:

  1. 手动下载模型文件

    • 访问 HuggingFace 模型页面:https://huggingface.co/Systran/faster-whisper-large-v1
    • 下载 model.bin 文件。
    • 将下载的 model.bin 文件放入正确的目录:D:/win-pyvideotrans-v3.95/models/models--Systran--faster-whisper-large-v1
    • 确保目录结构正确,model.bin 文件应直接位于该文件夹内。
  2. 检查并确保模型文件夹命名正确

    • 模型文件夹的命名必须严格遵循规则:models--作者名--模型名
    • 你的路径 D:/win-pyvideotrans-v3.95/models/models--Systran--faster-whisper-large-v1 是正确的。
  3. (可选)尝试使用其他模型

    • 在软件设置中,将语音识别模型切换为 large-v2large-v3,然后重新运行。软件会自动尝试下载新模型。如果网络不畅,仍需手动下载对应模型文件。
  4. 配置网络代理(如果无法访问HuggingFace)

    • 在软件菜单栏的“设置”->“网络代理”中,填写可用的代理地址,然后重启软件并重试下载。

参考文档:

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.

Related resource

Similar issues already exist