#3151 RuntimeError: Unable to open file 'model.bin' in model 'D:/A/models/models--Systran--faster-whisper-large-v3'

5.34* Posted at: 9 days ago 👁26

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:/A/models/models--Systran--faster-whisper-large-v3'


=
system:Windows-10-10.0.26200-SP0
version:v3.96
frozen:True
language:zh
root_dir:D:/A

1 Replies

这是由于模型文件 model.bin 缺失或损坏导致的。faster-whisper 模型文件未正确下载或存放。

解决方案

  1. 手动下载模型

    • 访问 HuggingFace 模型页面:https://huggingface.co/Systran/faster-whisper-large-v3
    • 下载 model.bin 文件(可能名为 pytorch_model.bin)。
    • 将下载的文件放入正确的目录:D:/A/models/models--Systran--faster-whisper-large-v3
    • 确保文件名为 model.bin(如果不是,请重命名)。
  2. 检查目录结构

    • 确认模型目录路径为 D:/A/models/models--Systran--faster-whisper-large-v3,并且该目录下存在 model.bin 文件。
    • 重要:路径中不能包含中文、空格或特殊符号。你的路径 D:/A/models/... 符合要求。
  3. 网络代理(可选)

    • 如果无法访问 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