#8790 Error during speech recognition stage[faster-whisper(Built-in)] Unable to open file 'model.bin' in model '/home/odelator

2804**bf56 Posted at: 9 hours ago

Error during speech recognition stage[faster-whisper(Built-in)] Unable to open file 'model.bin' in model '/home/odelator/pyvideotrans/models/models--Systran--faster-whisper-tiny',Traceback (most recent call last):
File "/home/odelator/pyvideotrans/videotrans/process/stt_faster.py", line 84, in faster_whisper

model = _create_model(compute_type)

File "/home/odelator/pyvideotrans/videotrans/process/stt_faster.py", line 54, in _create_model

model = WhisperModel(

File "/home/odelator/pyvideotrans/.venv/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 '/home/odelator/pyvideotrans/models/models--Systran--faster-whisper-tiny'

Traceback (most recent call last):
File "/home/odelator/pyvideotrans/videotrans/task/only_one.py", line 85, in run

trk.recogn()

File "/home/odelator/pyvideotrans/videotrans/task/_stage_recogn.py", line 64, in recogn

raw_subtitles = run_recogn(

File "/home/odelator/pyvideotrans/videotrans/recognition/__init__.py", line 148, in run

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

File "/home/odelator/pyvideotrans/videotrans/recognition/_base.py", line 101, in run

res = self._exec()

File "/home/odelator/pyvideotrans/videotrans/recognition/_whisper.py", line 39, in _exec

raws = self._faster(audio_duration)

File "/home/odelator/pyvideotrans/videotrans/recognition/_whisper.py",
......
to open file 'model.bin' in model '/home/odelator/pyvideotrans/models/models--Systran--faster-whisper-tiny',Traceback (most recent call last):
File "/home/odelator/pyvideotrans/videotrans/process/stt_faster.py", line 84, in faster_whisper

model = _create_model(compute_type)

File "/home/odelator/pyvideotrans/videotrans/process/stt_faster.py", line 54, in _create_model

model = WhisperModel(

File "/home/odelator/pyvideotrans/.venv/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 '/home/odelator/pyvideotrans/models/models--Systran--faster-whisper-tiny'

trk=Translation V/A 单视频模式
Select Media File: /home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion.mp4,
Output Directory: /home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion/trumptrillion-mp4,
self.cfg.cache_folder='/home/odelator/pyvideotrans/tmp/28132/9e840e7da2'
Not-Selected Clear Output, Not-Selected Enable CUDA
STT Service:faster-whisper(Built-in), tiny, Spoken: English
Max Speech Duration (s): 5s
Min Speech Duration (ms): 3000ms
Min Silence Duration for Split (ms): 600ms
VAD Speech Threshold: 0.45
VAD Engine: silero
Compute Type:default
Beam Size:5
Best Of:5
Condition on Previous Text:False
Repetition Penalty:1.0
Compression Ratio Threshold:2.4
TranslateSrt:Google Translate (Free),Spoken:English,Target:Portuguese (Brazilian)
Traditional Translation Batch Size (Lines): 5
TTS Service:Edge-TTS (Free), Voices:Duarte(Male/PT), Target:Portuguese (Brazilian)
Volume:+0%, Speed:+0%, Not-Selected TTS Speedup, Not-Selected Slow Video
Not-Selected Remove In-between Silences, Selected Sync Subtitles & Speech
Selected Trim Start/End Silence in Dubbed Segments
Silence Removal Intensity: default
No Subtitles
video duration:151985ms
video information:{'video_fps': 29.97002997002997, 'r_frame_rate': 29.97002997002997, 'video_codec_name': 'hevc', 'audio_codec_name': 'aac', 'width': 2160, 'height': 3840, 'time': 151985, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='9e840e7da2', name='/home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion.mp4', dirname='/home/odelator/Vídeos/Topicals/Fascist Amerikkka', noextname='trumptrillion', basename='trumptrillion.mp4', ext='mp4', target_dir='/home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion/trumptrillion-mp4', cache_folder='/home/odelator/pyvideotrans/tmp/28132/9e840e7da2', is_cuda=False, source_language='English', source_language_code='en', source_sub='/home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion/trumptrillion-mp4/en.srt', source_wav='/home/odelator/pyvideotrans/tmp/28132/9e840e7da2/en.wav', source_wav_output='/home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion/trumptrillion-mp4/en.m4a', target_language='Portuguese (Brazilian)', target_language_code='pt-br', target_sub='/home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion/trumptrillion-mp4/pt-br.srt', target_wav='/home/odelator/pyvideotrans/tmp/28132/9e840e7da2/target.wav', target_wav_output='/home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion/trumptrillion-mp4/pt-br.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Duarte(Male/PT)', 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='tiny', 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='/home/odelator/Vídeos/Topicals/Fascist Amerikkka/trumptrillion/trumptrillion-mp4/trumptrillion.mp4', novoice_mp4='/home/odelator/pyvideotrans/tmp/28132/9e840e7da2/novoice.mp4', is_separate=False, embed_bgm=True, instrument='/home/odelator/pyvideotrans/tmp/28132/9e840e7da2/instrument.wav', vocal='/home/odelator/pyvideotrans/tmp/28132/9e840e7da2/vocal.wav', clear_cache=False, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=151985


=
system:Linux-7.0.0-28-generic-x86_64-with-glibc2.39
version:v4.18
frozen:False
language:en_US
root_dir:/home/odelator/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:42:18) [Clang 21.1.4 ]

1 Replies

#1 DeepSeek reply at 9 hours ago

This is not a code bug: the faster-whisper model files failed to download or were only partially downloaded, so model.bin does not exist or cannot be read.

Solution

  1. Delete the incomplete model directory:

    rm -rf /home/odelator/pyvideotrans/models/models--Systran--faster-whisper-tiny
  2. Manually download all files from https://huggingface.co/Systran/faster-whisper-tiny/tree/main (at minimum: model.bin, config.json, tokenizer.json, vocabulary.txt, preprocessor_config.json).
  3. Put the downloaded files directly into /home/odelator/pyvideotrans/models/models--Systran--faster-whisper-tiny/. Do not create an extra subfolder, and do not leave duplicate names such as model(2).bin.
  4. If the automatic download keeps failing, create an empty file named huggingface.txt in the software root directory /home/odelator/pyvideotrans/ to force downloads from huggingface.co instead of the domestic mirror, then delete the model directory again and rerun the task.
  5. Alternative: first delete that directory and switch the model to large-v3-turbo (the tiny model has the worst accuracy anyway); it will download again.

Notes

  • The model.bin file must be present and have a normal size (tiny is about 75MB). If it is 0 bytes or only a few KB, the download failed.
  • If you downloaded the files through a browser, make sure the filenames were not automatically changed to model(1).bin or similar.

Please refer to the related documentation:

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