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

27.189* Posted at: 19 hours ago

语音识别阶段出错[faster-whisper(本地内置)] Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tf
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 92, 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: tf
cfg=TaskCfgSTT(uuid='85e004a550', name='G:/新建文件夹 (3)/19/13376197_hq.mp4', dirname='G:/新建文件夹 (3)/19', noextname='13376197_hq', basename='13376197_hq.mp4', ext='mp4', target_dir='D:/pyvideotrans/output/recogn', cache_folder='D:/pyvideotrans/tmp/6992/85e004a550', is_cuda=False, 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='D:/pyvideotrans/output/recogn/13376197_hq.srt', target_wav=None, target_wav_output=None, detect_language='auto', recogn_type=0, model_name='medium', shibie_audio='D:/pyvideotrans/tmp/6992/85e004a550/13376197_hq-1784683794.0215619.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0)


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

1 Replies

Backend should be defined in the BACKENDS_MAPPING. Offending backend: tf 错误是由 transformers 库版本升级后,旧版缓存文件冲突导致的。

请按以下步骤操作:

  1. 重新下载补丁包:前往 pyVideoTrans 下载页面 下载当前最新的补丁包(约260MB),解压后直接覆盖到软件根目录。
  2. 如果仍报错:完全卸载软件(删除整个目录),重新下载 完整版压缩包(约2.6GB),解压到纯英文目录(如 D:\pyvideotrans)后再次运行。

此问题在升级 4.05/4.06 版本时较为常见,覆盖补丁包即可修复。

请查阅相关文档:

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