#9081 语音识别阶段出错[faster-whisper(内置)] Unable to open file 'model.bin' in model 'D:/win-pyvideotrans-v4.20/models/models--mobiusla

111.55**4 Posted at: 21 minutes ago

语音识别阶段出错[faster-whisper(内置)] Unable to open file 'model.bin' in model 'D:/win-pyvideotrans-v4.20/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo',Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 78, in faster_whisper
File "videotrans\process\stt_faster.py", line 49, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: Unable to open file 'model.bin' in model 'D:/win-pyvideotrans-v4.20/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo'

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 85, in run
File "videotrans\task\_stage_recogn.py", line 69, in recogn
File "videotrans\recognition\__init__.py", line 167, in run
File "videotrans\recognition\_base.py", line 98, in run
File "videotrans\recognition\_whisper.py", line 41, in _exec
File "videotrans\recognition\_whisper.py", line 137, in _faster
File "videotrans\configure\base.py", line 285, in _new_process
videotrans.configure.excepts.VideoTransError: Unable to open file 'model.bin' in model 'D:/win-pyvideotrans-v4.20/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo',Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 78, in faster_whisper
File "videotrans\process\stt_faster.py", line 49, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: Unable to open file 'model.bin' in model 'D:/win-pyvideotrans-v4.20/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo'

trk=翻译视频 单视频模式
选择音视频文件: E:/选择性补票/发现更多精彩视频 - 抖音搜索.mp4,
输出目录: E:/选择性补票/_video_out/发现更多精彩视频 - 抖音搜索-mp4,
self.cfg.cache_folder='D:/win-pyvideotrans-v4.20/tmp/30216/6f5ca48c4e'
已选 清理已生成, 已选 启用硬件加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语
最长语音持续(秒): 5s
最短语音持续(毫秒): 3000ms
静音分割持续毫秒: 600ms
语音阈值: 0.45
选择VAD: silero
计算数据类型:default
识别准确度beam_size:5
识别准确度best_of:5
启用上下文感知:False
重复惩罚:1.0
文本压缩率:2.4
翻译渠道:微软(免费),发音语言:英语,目标语言:简体中文
传统翻译渠道每批字幕行数: 5
Dont dubbing: self.cfg.voice_role='No'
嵌入硬字幕(双)
中日韩字幕单行字符数:15, 其他语言字幕单行字符数:40
已选 仅输出mp4
video duration:299375ms
video information:{'video_fps': 24.0, 'r_frame_rate': 24.0, 'video_codec_name': 'hevc', 'audio_codec_name': 'aac', 'width': 1920, 'height': 1080, 'time': 299375, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='6f5ca48c4e', name='E:/选择性补票/发现更多精彩视频 - 抖音搜索.mp4', dirname='E:/选择性补票', noextname='发现更多精彩视频 - 抖音搜索', basename='发现更多精彩视频 - 抖音搜索.mp4', ext='mp4', target_dir='E:/选择性补票/_video_out/发现更多精彩视频 - 抖音搜索-mp4', cache_folder='D:/win-pyvideotrans-v4.20/tmp/30216/6f5ca48c4e', is_cuda=True, source_language='英语', source_language_code='en', source_sub='E:/选择性补票/_video_out/发现更多精彩视频 - 抖音搜索-mp4/en.srt', source_wav='D:/win-pyvideotrans-v4.20/tmp/30216/6f5ca48c4e/en.wav', source_wav_output='E:/选择性补票/_video_out/发现更多精彩视频 - 抖音搜索-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='E:/选择性补票/_video_out/发现更多精彩视频 - 抖音搜索-mp4/zh-cn.srt', target_wav='D:/win-pyvideotrans-v4.20/tmp/30216/6f5ca48c4e/target.wav', target_wav_output='E:/选择性补票/_video_out/发现更多精彩视频 - 抖音搜索-mp4/zh-cn.m4a', translate_type=1, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, tts_model_name=None, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='E:/选择性补票/_video_out/发现更多精彩视频 - 抖音搜索-mp4/发现更多精彩视频 - 抖音搜索.mp4', novoice_mp4='D:/win-pyvideotrans-v4.20/tmp/30216/6f5ca48c4e/novoice.mp4', is_separate=False, embed_bgm=True, instrument='D:/win-pyvideotrans-v4.20/tmp/30216/6f5ca48c4e/instrument.wav', vocal='D:/win-pyvideotrans-v4.20/tmp/30216/6f5ca48c4e/vocal.wav', clear_cache=True, background_music='', subtitle_type=3, only_out_mp4=True, recogn2pass=False, output_srt=2, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=299375


=
system:Windows-10-10.0.26300-SP0
version:v4.20
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.20

1 Replies

#1 DeepSeek reply at 21 minutes ago

核心原因:faster-whisper 的 large-v3-turbo 模型没有下载完整。model.bin 是模型主文件,该文件夹里缺少它(或它只有残缺的 .incomplete 文件),通常是在线下载中断,或镜像站限流失败造成的。这不是代码问题。

解决步骤

  1. 关闭软件,进入并删除整个文件夹:
    D:/win-pyvideotrans-v4.20/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo
    (若同级的兄弟目录里还留有 .incomplete、.lock 等残留文件,也一并删除)
  2. 确认网络条件:该模型位于 huggingface.co,国内直连被屏蔽。软件会自动尝试走国内镜像 hf-mirror.com,但镜像存在限流(429),大文件经常下载失败。建议开启稳定的科学上网代理后重试,并在 高级选项 中确认代理已正确填写(格式 http://127.0.0.1:端口)。也可在软件根目录新建空文件 huggingface.txt,强制从 huggingface.co 源站下载。
  3. 重新打开软件并执行任务,软件会自动重新下载该模型(约 1.6G,需要耐心等待,不要中途关闭)。
  4. 若自动下载反复失败,手动下载:

    • 打开 https://huggingface.co/mobiuslabsgmbh/faster-whisper-large-v3-turbo/tree/main
    • 下载该页面全部文件(config.json、model.bin、tokenizer.json、vocabulary.txt 等)
    • 全部放入新建的文件夹 软件目录/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo/
    • 务必保持原始文件名。浏览器重复下载同名文件时会自动加 (2) 后缀(如 model(2).bin),必须改回 model.bin,否则软件依然识别不到。
  5. 应急替代方案:先把主界面识别模型临时换成 large-v3(对应目录 models/models--Systran--faster-whisper-large-v3),确认其他流程能否跑通,再单独解决 turbo 模型。

另外两点提醒

  • 你的视频路径 E:/选择性补票/发现更多精彩视频 - 抖音搜索.mp4 含中文、空格和连字符。虽然本次报错的主因是模型缺失,但这类路径名在后续 ffmpeg 合成、硬字幕渲染阶段极易引发新的报错,建议重命名为简短英文(如 E:/video/001.mp4)后再翻译。
  • 你勾选了 启用硬件加速 且 is_cuda=True,若模型补全后仍出现显存不足或 BrokenProcessPool,请先把 large-v3-turbo 降为 medium,或在高级选项把 计算数据类型 改为 float16。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource