#4173 TaskCfgVTT(is_cuda=True, uuid='8424117e82', cache_folder='F:/win-pyvideotrans-v3.99-418/tmp/28592/8424117e82', target_di

103.3* Posted at: 1 hour ago 👁8

语音识别阶段出错 [openai-whisper(本地)] Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 63, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 91, in _download
RuntimeError: Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.

Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\trans_create.py", line 361, in recogn
File "videotrans\recognition\__init__.py", line 293, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_overall.py", line 31, in _exec
File "videotrans\recognition\_overall.py", line 73, in _openai
File "videotrans\configure\_base.py", line 289, in _new_process
RuntimeError: Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 63, in openai_whisper
File "whisper\__init__.py", line 137, in load_model
File "whisper\__init__.py", line 91, in _download
RuntimeError: Model has been downloaded but the SHA256 checksum does not not match. Please retry loading the model.
TaskCfgVTT(is_cuda=True, uuid='8424117e82', cache_folder='F:/win-pyvideotrans-v3.99-418/tmp/28592/8424117e82', target_dir='F:/Math.Tutor.DVD.Complete.Collection.XviD/Math.Tutor.DVD.Basic.Math/_video_out/24.adding.and.subtracting.fractions.and.finding.the.common.denominator-avi', source_language='英语', source_language_code='en', source_sub='F:/Math.Tutor.DVD.Complete.Collection.XviD/Math.Tutor.DVD.Basic.Math/_video_out/24.adding.and.subtracting.fractions.and.finding.the.common.denominator-avi/en.srt', source_wav='F:/win-pyvideotrans-v3.99-418/tmp/28592/8424117e82/en.wav', source_wav_output='F:/Math.Tutor.DVD.Complete.Collection.XviD/Math.Tutor.DVD.Basic.Math/_video_out/24.adding.and.subtracting.fractions.and.finding.the.common.denominator-avi/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/Math.Tutor.DVD.Complete.Collection.XviD/Math.Tutor.DVD.Basic.Math/_video_out/24.adding.and.subtracting.fractions.and.finding.the.common.denominator-avi/zh-cn.srt', target_wav='F:/win-pyvideotrans-v3.99-418/tmp/28592/8424117e82/target.wav', target_wav_output='F:/Math.Tutor.DVD.Complete.Collection.XviD/Math.Tutor.DVD.Basic.Math/_video_out/24.adding.and.subtracting.fractions.and.finding.the.common.denominator-avi/zh-cn.m4a', name='F:/Math.Tutor.DVD.Complete.Collection.XviD/Math.Tutor.DVD.Basic.Math/24.adding.and.subtracting.fractions.and.finding.the.common.denominator.avi', noextname='24.adding.and.subtracting.fractions.and.finding.the.common.denominator', basename='24.adding.and.subtracting.fractions.and.finding.the.common.denominator.avi', ext='avi', dirname='F:/Math.Tutor.DVD.Complete.Collection.XviD/Math.Tutor.DVD.Basic.Math', shound_del_name=None, translate_type=13, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=1, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/Math.Tutor.DVD.Complete.Collection.XviD/Math.Tutor.DVD.Basic.Math/_video_out/24.adding.and.subtracting.fractions.and.finding.the.common.denominator-avi/24.adding.and.subtracting.fractions.and.finding.the.common.denominator.mp4', novoice_mp4='F:/win-pyvideotrans-v3.99-418/tmp/28592/8424117e82/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=3, only_out_mp4=True, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v3.99-418

1 Replies

这是由于 openai-whisper 模型文件下载不完整或损坏,导致 SHA256 校验失败。

解决方案:

  1. 手动清理并重新下载模型

    • 前往软件安装目录下的 models/ 文件夹。
    • 删除与 openai-whisper 相关的模型文件夹(例如,包含 whisperopenai-whisper 字样的文件夹)。
    • 重新启动 pyVideoTrans,在语音识别阶段选择 openai-whisper(本地),软件会尝试重新下载模型。
  2. 如果自动下载失败,请手动下载模型

    • 根据你选择的模型(例如 large-v3),在 models/ 文件夹内创建对应的文件夹。对于 openai-whisper,文件夹命名规则通常为 openai-whisper-large-v3
    • 从 HuggingFace 官方或镜像站手动下载该模型的所有文件(.json, .bin, .txt 等)。
    • 将下载的所有文件放入上一步创建的文件夹内。
    • 重启软件。
  3. (推荐)切换至 faster-whisper(本地) 渠道

    • faster-whisper 在速度和资源占用上通常优于 openai-whisper,且遇到此问题的概率较低。你可以在主界面的“语音识别”下拉菜单中直接切换。

注意:手动下载模型时,请确保网络连接稳定,或使用可靠的下载工具,以避免文件再次损坏。

请查阅相关文档:

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