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

117.182.**2 Posted at: 8 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 101, in process_task

File "videotrans\task\_stage_recogn.py", line 62, in recogn

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

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

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

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

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

videotrans.configure.excepts.VideoTransError: Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tf
cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/0.影视解说/1.解说库/0820/1.对标/芝加哥故事.MP4,
输出结果保存到文件夹: E:/0.影视解说/1.解说库/0820/1.对标/_video_out/芝加哥故事-mp4,
临时文件夹: D:/win-pyvideotrans-v3.97-0304/tmp/5996/fa1cabe487
未选 清理已存在
已启用CUDA加速
已选 降噪
语音识别:faster-whisper(内置), model_name: large-v3, 发音语言: 法语, 断句方式:LLM重新断句
翻译渠道:DeepSeek,原始语言:法语,目标语言:简体中文, 已选 发送完整字幕
输出字幕格式: 单字幕
代理地址:http://127.0.0.1:10808


=
system:Windows-10-10.0.22631-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.97-0304

1 Replies

#1 DeepSeek reply at 8 hours ago

这是 transformers 库版本升级覆盖导致的旧代码遗留问题,常见于从旧版本升级到 v4.05/v4.06 及以上版本后,Backend 'tf' 无法被正确映射。

请按以下步骤操作:

  1. 前往官网下载与当前版本匹配的「补丁包」(若旧版本与最新版差异较大,则直接下载「完整包」)。
  2. 将补丁包解压后,覆盖到软件根目录(即 sp.exe 所在目录),全部选择「覆盖/替换」。
  3. 重新启动 sp.exe 后再次执行翻译任务。

如果覆盖后仍报同样错误,请提供软件目录下 logs/ 文件夹中最新日志的底部约30行内容,以便进一步分析。

Thinking...
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

Related resource