#6147 Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tfTraceback (most recent call la

2407:d840* Posted at: 21 hours ago

Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tf
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 52, in run
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 40, in _exec
File "videotrans\recognition\_whisper.py", line 128, 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=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/Tutorial/游戏/Godot 系列教程/【系列】垂直切片系列(Fat Earth Studios)/【垂直切片系列】P01b、完成你的 Godot 项目设置.mp4,
输出结果保存到文件夹: D:/Tutorial/游戏/Godot 系列教程/【系列】垂直切片系列(Fat Earth Studios)/【垂直切片系列】P01b、完成你的 Godot 项目设置-mp4,
临时文件夹: C:/AiTools/win-pyvideotrans/tmp/33028/2b9ed678c4
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v2, 发音语言: 英语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Index-TTS(本地API), 角色:en_m_Fat Earth Studios.wav, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
字幕: 不嵌入字幕
代理地址:http://127.0.0.1:7897


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

1 Replies

这是由于 tensorflow 后端映射异常导致的,常见于 transformers 库版本升级后的旧缓存冲突。

解决方案:

  1. 重新下载最新补丁包覆盖:前往 pyVideoTrans 下载页 下载与版本 v4.07 对应的完整补丁包(约 260MB),解压后直接覆盖到原软件目录,替换所有文件(不影响配置文件)。
  2. 若问题依旧,请彻底清理 models/ 目录下的缓存(删除 models/ 内所有 models--* 文件夹,重新下载模型),然后重启软件。
  3. 检查 Index-TTS 本地服务是否已经正确启动并运行在 7860 端口(或你设定的端口),且服务本身没有 tensorflow 相关错误。

注意:请确保软件根目录路径不含中文、空格或特殊符号(当前路径 C:/AiTools/win-pyvideotrans 符合要求,无需修改)。

请查阅相关文档:

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