#3027 RuntimeError: Unable to open file 'model.bin' in model 'E:/Downloadall/video tr/win-pyvideotrans-v3.96-131/models/models

132.226* Posted at: 16 days ago 👁43

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 'E:/Downloadall/video tr/win-pyvideotrans-v3.96-131/models/models--Systran--faster-whisper-large-v3'


=
system:Windows-10-10.0.26220-SP0
version:v3.96
frozen:True
language:zh
root_dir:E:/Downloadall/video tr/win-pyvideotrans-v3.96-131

1 Replies

这是由于 faster-whisper 模型文件 model.bin 缺失或损坏导致的。软件尝试从 HuggingFace 下载模型失败,或模型文件不完整。

解决方案

  1. 手动下载模型文件

    • 访问 HuggingFace 模型页面:https://huggingface.co/Systran/faster-whisper-large-v3
    • 点击 Files and versions 标签页。
    • 下载 model.bin 文件。
  2. 放置模型文件

    • 将下载的 model.bin 文件放入以下目录:
      E:/Downloadall/video tr/win-pyvideotrans-v3.96-131/models/models--Systran--faster-whisper-large-v3
    • 确保目录路径完全正确,且 model.bin 文件直接位于该文件夹内。
  3. 替代方案(配置网络代理)

    • 如果无法访问 HuggingFace,可以在软件“设置”菜单中配置“网络代理”,然后重启软件,让它自动重试下载。

重要提示:请确保软件安装路径(E:/Downloadall/video tr/...)中没有空格。路径中的空格可能导致未知错误。建议将软件解压到类似 D:\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