#3033 TaskCfg(cache_folder='F:/EDITVIDEO/win-pyvideotrans-v3.96/tmp/6836/bb136dd262', target_dir='C:/Users/Son Bui/Videos/pyvi

117.1* Posted at: 15 days ago 👁35

ASR Error [faster-whisper (Local)] 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 'F:/EDITVIDEO/win-pyvideotrans-v3.96/models/models--Systran--faster-whisper-large-v3'

Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\_speech2text.py", line 156, in recogn
File "videotrans\recognition\__init__.py", line 284, in run
File "videotrans\recognition\_base.py", line 141, in run
File "videotrans\recognition\_overall.py", line 63, in _exec
File "videotrans\recognition\_overall.py", line 142, in _faster
File "videotrans\configure\_base.py", line 276, in _new_process
RuntimeError: 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 'F:/EDITVIDEO/win-pyvideotrans-v3.96/models/models--Systran--faster-whisper-large-v3'
TaskCfg(cache_folder='F:/EDITVIDEO/win-pyvideotrans-v3.96/tmp/6836/bb136dd262', target_dir='C:/Users/Son Bui/Videos/pyvideotrans/recogn/recogn', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='C:/Users/Son Bui/Videos/pyvideotrans/recogn/recogn/Chinese Haircut 322_480p.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles='', novoice_mp4=None, noextname='Chinese Haircut 322_480p', shibie_audio='F:/EDITVIDEO/win-pyvideotrans-v3.96/tmp/6836/bb136dd262/Chinese Haircut 322_480p-1769951893.7438219.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=0, model_name='large-v3', voice_autorate=False, video_autorate=False, cuda=True, name='F:/video/china haircut/Chinese Haircut 322_480p.mp4', basename='Chinese Haircut 322_480p.mp4', ext='mp4', dirname='F:/video/china haircut', shound_del_name=None, uuid='bb136dd262', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.26100-SP0
version:v3.96
frozen:True
language:en
root_dir:F:/EDITVIDEO/win-pyvideotrans-v3.96

1 Replies

The error is caused by a missing or corrupted model.bin file for the faster-whisper-large-v3 model. The software cannot find the necessary model file in the specified directory.

Solution Steps:

  1. Manually download the model: Due to potential network issues with HuggingFace, you need to download the model manually.
  2. Correct folder structure: The model files must be placed in a specific folder structure within your models/ directory.
  3. Verify the download: Ensure the model.bin file is present.

Detailed Instructions:

  1. Go to the HuggingFace model page for Systran/faster-whisper-large-v3 (or use a mirror site if you are in a region with access restrictions).
  2. Download all the files from the repository, including config.json, tokenizer.json, vocabulary.txt, and most importantly, the model.bin file (or the pytorch_model.bin if that's the name).
  3. In your pyVideoTrans installation folder, navigate to F:/EDITVIDEO/win-pyvideotrans-v3.96/models/.
  4. Create a folder named exactly: models--Systran--faster-whisper-large-v3.
  5. Place all the downloaded model files directly into this new folder. The path should look like: F:/EDITVIDEO/win-pyvideotrans-v3.96/models/models--Systran--faster-whisper-large-v3/model.bin
  6. Restart pyVideoTrans and try the speech recognition task again.

If you continue to experience issues, please provide the latest log file from the logs/ directory.

Please refer to the relevant documentation:

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