#5895 Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_textTraceback (most r

58.48* Posted at: 1 hour ago

Subprocess Error: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_text
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 47, in run
File "videotrans\task\_stage_recogn.py", line 62, 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=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: E:/ICT VIP/ICT Forex - Market Maker Primer Course-20250817T085822Z-1-001/ICT Forex - Market Maker Primer Course/ICT Forex - 4 The ICT Asian Killzone .mp4,
输出结果保存到文件夹: E:/ICT VIP/ICT Forex - Market Maker Primer Course-20250817T085822Z-1-001/ICT Forex - Market Maker Primer Course/_video_out/ICT Forex - 4 The ICT Asian Killzone -mp4,
临时文件夹: D:/pyvideotrans/win-pyvideotrans-v4.03/tmp/11904/430498b49b
未选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3, 发音语言: 英语, 断句方式:LLM重新断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunjian(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
代理地址:


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

1 Replies

这是 faster-whisper 语音识别子进程初始化时遇到的 TensorFlow Text 后端缺失错误。该错误可能由于系统环境冲突或软件包依赖损坏导致。

解决方案

  1. 确保使用官方完整版:确认下载的是 2.6GB+ 的完整版压缩包而非 260MB 补丁包。清除旧版本后重新解压最新 v4.06 完整版到纯英文路径(如 D:\pyVideoTrans)。
  2. 尝试更换语音识别渠道:在主界面将语音识别切换为 openai-whisper(本地内置)Qwen-ASR(本地内置)(中文视频)等渠道,以避开该错误。
  3. 关闭 LLM 重新断句:在高级选项中将断句方式改为"默认断句"(虽然错误发生在识别阶段,但可排除干扰)。
  4. 检查系统环境:卸载系统中已有的 Python 环境,避免预打包版误加载系统 TensorFlow。同时安装 微软VC++运行库合集 后重启。
  5. 查看日志:如果以上无效,请复制软件目录下 logs/ 文件夹中最新的日志文件内容(约底部30行)反馈。

请查阅相关文档:

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