#5961 语音识别阶段出错[faster-whisper(本地内置)] Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: t

2001:b030* Posted at: 21 hours ago

语音识别阶段出错[faster-whisper(本地内置)] Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_text
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 100, in process_task

File "videotrans\task\speech2text.py", line 97, in recogn

File "videotrans\recognition\__init__.py", line 205, in run

File "videotrans\recognition\_base.py", line 91, in run

File "videotrans\recognition\_whisper.py", line 38, in _exec

File "videotrans\recognition\_whisper.py", line 124, in _faster

File "videotrans\configure\base.py", line 272, in _new_process

videotrans.configure.excepts.VideoTransError: Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_text
cfg=TaskCfgSTT(uuid='55b9a7b8e4', name='C:/media/名著解读/特蕾莎·拉奎恩/input.mp4', dirname='C:/media/名著解读/特蕾莎·拉奎恩', noextname='input', basename='input.mp4', ext='mp4', target_dir='C:/pyvideotrans/output/recogn', cache_folder='C:/pyvideotrans/tmp/28212/55b9a7b8e4', is_cuda=True, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='C:/pyvideotrans/output/recogn/input.srt', target_wav=None, target_wav_output=None, detect_language='auto', recogn_type=0, model_name='large-v3', shibie_audio='C:/pyvideotrans/tmp/28212/55b9a7b8e4/input-1784542140.217684.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


=
system:Windows-10-10.0.26200-SP0
version:v4.06
frozen:True
language:zh
root_dir:C:/pyvideotrans

1 Replies

这个错误是 transformers 库版本升级后遗留的旧代码冲突导致的,常见于升级到 v4.05/v4.06 版本后。

解决方案:

  1. 重新下载并覆盖最新补丁包
    前往 pyVideoTrans 下载页面 重新下载当前版本的补丁包(约 260MB),解压后直接覆盖到软件安装目录,替换所有文件。
  2. 如果仍无法解决,请重新下载完整包
    删除现有安装目录(注意备份 videotrans/params.json 等配置文件),重新下载完整包(约 2.6GB)并解压,再将补丁包覆盖一次。
  3. 更新后重启软件,问题应消失。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource