#9027 语音识别阶段出错[faster-whisper(内置)] Unable to open file 'model.bin' in model '/Users/cc/pyvideotrans/models/models--mobiuslabsg

13.231**7 Posted at: 17 hours ago

语音识别阶段出错[faster-whisper(内置)] Unable to open file 'model.bin' in model '/Users/cc/pyvideotrans/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo',Traceback (most recent call last):
File "/Users/cc/pyvideotrans/videotrans/process/stt_faster.py", line 84, in faster_whisper

model = _create_model(compute_type)

File "/Users/cc/pyvideotrans/videotrans/process/stt_faster.py", line 54, in _create_model

model = WhisperModel(

File "/Users/cc/miniconda3/envs/pyvideotrans/lib/python3.10/site-packages/faster_whisper/transcribe.py", line 689, in init

self.model = ctranslate2.models.Whisper(

RuntimeError: Unable to open file 'model.bin' in model '/Users/cc/pyvideotrans/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo'

Traceback (most recent call last):
File "/Users/cc/pyvideotrans/videotrans/task/only_one.py", line 84, in run

trk.recogn()

File "/Users/cc/pyvideotrans/videotrans/task/_stage_recogn.py", line 64, in recogn

raw_subtitles = run_recogn(

File "/Users/cc/pyvideotrans/videotrans/recognition/__init__.py", line 148, in run

return _cls(**kwargs).run()  # type:ignore

File "/Users/cc/pyvideotrans/videotrans/recognition/_base.py", line 101, in run

res = self._exec()

File "/Users/cc/pyvideotrans/videotrans/recognition/_whisper.py", line 39, in _exec

raws = self._faster(audio_duration)

File "/Users/cc/pyvideotrans/videotrans/recognition/_whisper.py", line 136, in _faster

raws=self._new_process(callback=faster_whisper,title=title,is_cuda=self.is_cuda,kwargs=kwargs)

File "/Users/cc/pyvideotrans/videotrans/configure/base.py", line 291, in _new_process

raise VideoTransError(err)

videotrans.configure.excepts.VideoTransError: Unable to open file 'model.bin' in model '/Users/cc/pyvideotrans/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo',Traceback (most recent call last):
File "/Users/cc/pyvideotrans/videotrans/process/stt_faster.py", line 84, in faster_whisper

model = _create_model(compute_type)

File "/Users/cc/pyvideotrans/videotrans/process/stt_faster.py", line 54, in _create_model

model = WhisperModel(

File "/Users/cc/miniconda3/envs/pyvideotrans/lib/python3.10/site-packages/faster_whisper/transcribe.py", line 689, in init

self.model = ctranslate2.models.Whisper(

RuntimeError: Unable to open file 'model.bin' in model '/Users/cc/pyvideotrans/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo'

trk=翻译视频 单视频模式
选择音视频文件: /Users/cc/Downloads/06926555cfbd17ce7b154ef53ae56523.mp4,
输出目录: /Users/cc/Downloads/_video_out/06926555cfbd17ce7b154ef53ae56523-mp4,
self.cfg.cache_folder='/Users/cc/pyvideotrans/tmp/62277/0adce5c856'
已选 清理已生成, 未选 CUDA加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文
最长语音持续(秒): 5s
最短语音持续(毫秒): 3000ms
静音分割持续毫秒: 600ms
语音阈值: 0.45
选择VAD: silero
计算数据类型:default
识别准确度beam_size:5
识别准确度best_of:5
启用上下文感知:False
重复惩罚:1.0
文本压缩率:2.4
翻译渠道:智谱AI,发音语言:简体中文,目标语言:英语
已选 发送完整字幕, AI翻译渠道每批字幕行数:40
配音渠道:Edge-TTS(免费), 配音角色:Andrew(Male/US), 目标语言:英语
Volume:+0%, Speed:+0%, 已选 配音加速, 未选 视频慢速
已选 移除每条字幕配音开头结尾静音缓冲
静音移除力度: default
嵌入硬字幕
中日韩字幕单行字符数:15, 其他语言字幕单行字符数:40
video duration:37240ms
video information:{'video_fps': 30.0, 'r_frame_rate': 30.0, 'video_codec_name': 'hevc', 'audio_codec_name': 'aac', 'width': 720, 'height': 1280, 'time': 37240, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='0adce5c856', name='/Users/cc/Downloads/06926555cfbd17ce7b154ef53ae56523.mp4', dirname='/Users/cc/Downloads', noextname='06926555cfbd17ce7b154ef53ae56523', basename='06926555cfbd17ce7b154ef53ae56523.mp4', ext='mp4', target_dir='/Users/cc/Downloads/_video_out/06926555cfbd17ce7b154ef53ae56523-mp4', cache_folder='/Users/cc/pyvideotrans/tmp/62277/0adce5c856', is_cuda=False, source_language='简体中文', source_language_code='zh-cn', source_sub='/Users/cc/Downloads/_video_out/06926555cfbd17ce7b154ef53ae56523-mp4/zh-cn.srt', source_wav='/Users/cc/pyvideotrans/tmp/62277/0adce5c856/zh-cn.wav', source_wav_output='/Users/cc/Downloads/_video_out/06926555cfbd17ce7b154ef53ae56523-mp4/zh-cn.m4a', target_language='英语', target_language_code='en', target_sub='/Users/cc/Downloads/_video_out/06926555cfbd17ce7b154ef53ae56523-mp4/en.srt', target_wav='/Users/cc/pyvideotrans/tmp/62277/0adce5c856/target.wav', target_wav_output='/Users/cc/Downloads/_video_out/06926555cfbd17ce7b154ef53ae56523-mp4/en.m4a', translate_type=7, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Andrew(Male/US)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='zh', 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='/Users/cc/Downloads/_video_out/06926555cfbd17ce7b154ef53ae56523-mp4/06926555cfbd17ce7b154ef53ae56523.mp4', novoice_mp4='/Users/cc/pyvideotrans/tmp/62277/0adce5c856/novoice.mp4', is_separate=False, embed_bgm=True, instrument='/Users/cc/pyvideotrans/tmp/62277/0adce5c856/instrument.wav', vocal='/Users/cc/pyvideotrans/tmp/62277/0adce5c856/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=37240


=
system:macOS-26.6.2-arm64-arm-64bit
version:v4.18
frozen:False
language:zh_CN
root_dir:/Users/cc/pyvideotrans
Python: 3.10.15 | packaged by conda-forge | (main, Oct 16 2024, 01:24:20) [Clang 17.0.6 ]

1 Replies

#1 DeepSeek reply at 17 hours ago

这是模型文件下载不完整或损坏导致的——faster-whisper 的模型目录里缺少核心权重文件 model.bin(或该文件未下载完/被浏览器改名),并非代码或参数问题。

解决步骤

1. 删除损坏的模型目录

关闭软件,删除整个目录:

/Users/cc/pyvideotrans/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo

2. 重新触发自动下载

重新启动软件,选择相同的 faster-whisper + large-v3-turbo,再次执行任务,软件会自动重新下载(约 1.6GB)。下载期间请保持网络稳定,建议挂代理,且中途不要中断;macOS 上没有 hf-mirror.com 兜底成功时通常会直接失败,可先在根目录 /Users/cc/pyvideotrans/ 下新建一个空文件 huggingface.txt,强制走 huggingface.co 官方源下载后再试。

3. 若自动下载反复失败,手动下载

打开 https://huggingface.co/mobiuslabsgmbh/faster-whisper-large-v3-turbo/tree/main ,将该页面全部文件(config.json、model.bin、tokenizer.json、vocabulary.txt、preprocessor_config.json 等)逐个下载,放入目录:

/Users/cc/pyvideotrans/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo

注意:浏览器对同名文件会自动重命名为 model(1).bin 之类,必须改回原名 model.bin,否则软件仍无法识别。

4. 临时验证方案

若急需出结果,可先把识别模型换成 large-v3 或 medium 测试,确认是模型下载问题而非环境问题;同时注意你未勾选 CUDA 加速,macOS 上走的是 CPU/自选设备,速度会较慢。

请查阅相关文档:

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