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

64.118**6 Posted at: 1 hour ago

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

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 101, in process_task

File "videotrans\task\_stage_recogn.py", line 64, in recogn

File "videotrans\recognition\__init__.py", line 141, in run

File "videotrans\recognition\_base.py", line 101, in run

File "videotrans\recognition\_whisper.py", line 39, in _exec

File "videotrans\recognition\_whisper.py", line 136, in _faster

File "videotrans\configure\base.py", line 277, in _new_process

videotrans.configure.excepts.VideoTransError: Unable to open file 'model.bin' in model 'E:/win-pyvideotrans-v4.17/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo',Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 84, in faster_whisper
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: Unable to open file 'model.bin' in model 'E:/win-pyvideotrans-v4.17/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo'
trk=[TransCreate]: uuid='817dcfb6be', proxy_str='http://127.0.0.1:7892', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: H:/1年限制到2706/无字幕版本/AllVideos/1.0.mp4,
输出结果保存到文件夹: H:/1年限制到2706/无字幕版本/AllVideos/_video_out/1.0-mp4,
临时文件夹: E:/win-pyvideotrans-v4.17/tmp/13044/817dcfb6be
已选 清理已存在
已启用CUDA加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, , 数据类型:default
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕, settings.get('trans_thread')=5, settings.get('aitrans_thread')=40
未选 配音角色,不进行配音
字幕: 嵌入软字幕
代理地址: http://127.0.0.1:7892, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=False


=
system:Windows-10-10.0.19045-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:E:/win-pyvideotrans-v4.17

3 Replies

#1 DeepSeek reply at 1 hour ago

模型文件不完整或下载失败:faster-whisper 在指定目录中找不到 model.bin,说明 large-v3-turbo 模型没下载完整(目录残缺、被中断,或文件名被浏览器改成了 model(1).bin 之类)。

解决方案(按顺序尝试)

  1. 删除残缺模型目录后自动重下

    • 先彻底关闭软件
    • 删除整个文件夹 E:/win-pyvideotrans-v4.17/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo
    • 重新启动软件,再次执行翻译,软件会重新在线下载该模型
    • 下载期间不要关闭软件,也不要断网。国内直连 huggingface.co 通常不通,需开启稳定的代理(你在软件里已填 http://127.0.0.1:7892,请确认该代理确实已启动且能访问 huggingface.co)
  2. 手动下载完整模型文件(自动下载总失败时)

    • 打开 https://huggingface.co/mobiuslabsgmbh/faster-whisper-large-v3-turbo/tree/main
    • 下载该页面下所有文件(model.bin、config.json、tokenizer.json、vocabulary.txt 等)
    • 全部放入 E:/win-pyvideotrans-v4.17/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo 目录内
    • 关键:若文件名被浏览器自动加了后缀(如 model(1).bin、config(2).json),必须改回原名 model.bin、config.json,否则软件仍识别不到
  3. 临时绕开(先能跑起来)

    • 主界面把语音识别模型从 large-v3-turbo 改为 small 或 medium,这些模型体积小,下载成功率高(质量略降)

补充排查

  • 检查该目录下是否只有几个几十 KB 的小文件而无 model.bin(约 1.6GB),若有则是典型的下载中断
  • 如确认目录内 model.bin 存在且体积正常仍报此错,说明文件损坏,按第1步删除重下

请查阅相关文档:

#2 64.118**6 reply at 33 minutes ago

为什么输出之后还是原来视频的语言,没有正常翻译为目标英语

#3 DeepSeek reply at 33 minutes ago

核心原因有两点,并且这两点和日志中的设置完全吻合:

  1. 你未选择配音角色(日志显示"未选 配音角色,不进行配音"),因此软件不会为视频生成配音,最终视频自然保留原视频的中文原声,因为软件只替换字幕,不替换声音。
  2. 你使用"嵌入软字幕",它是一条与视频文件分离的字幕轨道;VLC、PotPlayer 等播放器默认可能不加载字幕,或优先显示原视频自带字幕轨,网页播放时也完全不显示软字幕。因此你看起来"还是原语言"。

解决步骤

第一步:先确认翻译是否成功
打开输出文件夹 H:/1年限制到2706/无字幕版本/AllVideos/_video_out/1.0-mp4,查看是否存在 en.srt:

  • 若 en.srt 内是英文 → 翻译成功,问题只是字幕显示与无配音;
  • 若 en.srt 与原文一致或为空 → 翻译未生效,见下方第三部分。

第二步:要听到英文发音,必须选择配音渠道
在主界面第 4 行"配音渠道"选择 Edge-TTS(免费),在"配音角色"下拉中选择一个英文音色(需先把目标语言设为英语,才会出现英文音色)。

注意:日志里"should_dubbing=False",即整个配音阶段被跳过,声音必然不变。

第三步:要让字幕一定显示,改用硬字幕
主界面将"字幕嵌入类型"改为 嵌入硬字幕(字幕烧录进画面,任何播放器、网页都显示)。
若必须用软字幕,播放时手动开启:VLC → 字幕 → 字幕轨道 → 选择对应英文字幕;若看到的是原视频自带字幕,切换轨道即可。

第四步:若 en.srt 仍是中文(翻译未生效)的排查

  • Google(免费) 在国内必须使用代理,且代理必须可访问 google.com。你填的是 http://127.0.0.1:7892,请确认该代理正在运行、端口正确。
  • 更换为 Microsoft(免费) 或 DeepSeek 渠道重试;注意勾选主界面上的"清理已生成",以清除旧缓存。
  • 翻译结果被缓存:删除 E:/win-pyvideotrans-v4.17/tmp/translate_cache/ 目录下的缓存文件,或勾选"清理已生成",再重新运行。

请查阅相关文档:

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