#3215 TaskCfg(cache_folder='D:/ruanjian/win-pyvideotrans-v3.96-24/tmp/31608/13ce0d5a8c', target_dir='D:/_晚会/7逐梦新征程/_video_out/

2408:844f* Posted at: 4 hours ago 👁7

语音识别阶段出错 [faster-whisper(本地)] 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 'D:/ruanjian/win-pyvideotrans-v3.96-24/models/models--Systran--faster-whisper-tiny'

Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\trans_create.py", line 358, in recogn
File "videotrans\recognition\__init__.py", line 282, 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 'D:/ruanjian/win-pyvideotrans-v3.96-24/models/models--Systran--faster-whisper-tiny'
TaskCfg(cache_folder='D:/ruanjian/win-pyvideotrans-v3.96-24/tmp/31608/13ce0d5a8c', target_dir='D:/_晚会/7逐梦新征程/_video_out/逐梦新征程 - MR_KING 许依晴 刘璐 王子平-mp3', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='简体中文', source_language_code='zh-cn', target_language_code='zh-cn', source_sub='D:/_晚会/7逐梦新征程/_video_out/逐梦新征程 - MR_KING 许依晴 刘璐 王子平-mp3/zh-cn.srt', target_sub='D:/_晚会/7逐梦新征程/_video_out/逐梦新征程 - MR_KING 许依晴 刘璐 王子平-mp3/zh-cn.srt', source_wav='D:/ruanjian/win-pyvideotrans-v3.96-24/tmp/31608/13ce0d5a8c/zh-cn.wav', source_wav_output='D:/_晚会/7逐梦新征程/_video_out/逐梦新征程 - MR_KING 许依晴 刘璐 王子平-mp3/zh-cn.m4a', target_wav='D:/ruanjian/win-pyvideotrans-v3.96-24/tmp/31608/13ce0d5a8c/target.wav', target_wav_output='D:/_晚会/7逐梦新征程/_video_out/逐梦新征程 - MR_KING 许依晴 刘璐 王子平-mp3/zh-cn.m4a', subtitles='', novoice_mp4='D:/ruanjian/win-pyvideotrans-v3.96-24/tmp/31608/13ce0d5a8c/novoice.mp4', noextname='逐梦新征程 - MR_KING 许依晴 刘璐 王子平', shibie_audio=None, targetdir_mp4='D:/_晚会/7逐梦新征程/_video_out/逐梦新征程 - MR_KING 许依晴 刘璐 王子平-mp3/逐梦新征程 - MR_KING 许依晴 刘璐 王子平.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='tiqu', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', copysrt_rawvideo=True, clear_cache=False, translate_type=2, tts_type=0, recogn_type=0, model_name='tiny', voice_autorate=False, video_autorate=False, cuda=True, name='D:/_晚会/7逐梦新征程/逐梦新征程 - MR_KING 许依晴 刘璐 王子平.mp3', basename='逐梦新征程 - MR_KING 许依晴 刘璐 王子平.mp3', ext='mp3', dirname='D:/_晚会/7逐梦新征程', shound_del_name=None, uuid='13ce0d5a8c', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.26200-SP0
version:v3.96
frozen:True
language:zh
root_dir:D:/ruanjian/win-pyvideotrans-v3.96-24

1 Replies

这是由于 faster-whisper 模型文件 model.bin 缺失或损坏导致的。软件尝试从 HuggingFace 下载模型失败,或模型文件不完整。

解决方案:

  1. 手动下载模型文件

    • 前往 HuggingFace 模型页面(例如 https://huggingface.co/Systran/faster-whisper-tiny)或国内镜像站。
    • 下载完整的模型文件,特别是 model.bin
    • 将下载的模型文件放入正确的目录:D:/ruanjian/win-pyvideotrans-v3.96-24/models/models--Systran--faster-whisper-tiny/。确保文件夹命名完全一致。
  2. 检查模型目录结构

    • 确保 model.bin 文件直接位于上述文件夹内,或位于其子文件夹(如 snapshots/[哈希值]/)中。如果存在 snapshots 子文件夹,请确保软件能正确识别缓存路径。
  3. 更换模型

    • 在软件设置中,将语音识别模型从 tiny 更换为 large-v2large-v3(推荐,中文识别率更高)。软件会尝试下载新模型,如果网络不通,仍需手动下载。
  4. 配置网络代理

    • 如果无法访问 HuggingFace,请在软件“设置”中配置网络代理,然后重启软件并重试下载。

请查阅相关文档:

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