#3099 RuntimeError: Unable to open file 'model.bin' in model 'D:/pyVideoTrans/V3.96/models/models--Systran--faster-whisper-lar

45.125* Posted at: 21 hours ago 👁15

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 179, in faster_whisper
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: Unable to open file 'model.bin' in model 'D:/pyVideoTrans/V3.96/models/models--Systran--faster-whisper-large-v2'


=
system:Windows-10-10.0.22631-SP0
version:v3.96
frozen:True
language:zh
root_dir:D:/pyVideoTrans/V3.96

1 Replies

这是由于 faster-whisper 模型文件 model.bin 未正确下载或路径识别错误导致的。

解决方案:

  1. 检查模型文件夹:前往 D:/pyVideoTrans/V3.96/models/ 目录,确认是否存在名为 models--Systran--faster-whisper-large-v2 的文件夹。
  2. 检查模型文件:进入上述文件夹,检查其中是否包含 model.bin 文件。如果文件夹存在但文件缺失或不完整,说明模型下载失败。
  3. 手动下载模型

    • 由于网络问题,软件可能无法从 HuggingFace 直接下载模型。
    • 请从国内镜像站或使用其他方式手动下载 faster-whisper-large-v2 模型。
    • 将下载的模型文件(通常包含 config.json, model.bin, tokenizer.json 等)放入 D:/pyVideoTrans/V3.96/models/models--Systran--faster-whisper-large-v2 文件夹内。
  4. 配置网络代理(可选):如果希望软件自动下载,可以在软件“设置”中配置网络代理地址,以访问 HuggingFace。
  5. 重启软件:完成上述操作后,重启 pyVideoTrans 再试。

请查阅相关文档:

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