#5894 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-turbo, 发音语言: 英语, 断句方式: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

这个错误通常是因为 CTranslate2 在加载 faster-whisper 模型时,检测到环境中存在不兼容的 tensorflow_text 后端(即使是打包版也可能因为系统环境变量或缓存冲突而触发)。

解决方法

  1. 清理模型缓存:确保 models/ 目录下的 faster-whisper 模型文件完整且正确。可尝试手动删除对应模型文件夹(如 models/models--Systran--faster-whisper-large-v3-turbo),重启软件让其重新下载。
  2. 修改环境变量:在软件根目录下新建一个环境变量文件或直接修改系统环境变量,添加:

    CT2_VERBOSE=0
    CT2_USE_EXPERIMENTAL_DECODER=0

    然后重启软件。

  3. 替换模型:在语音识别渠道下拉框中改为选择 faster-whisper(本地内置) 并使用 large-v3 模型(非 turbo),避免使用可能触发该冲突的特定模型变体。
  4. 若以上无效:考虑完全卸载并重新下载完整版压缩包(约2.6GB)解压到纯英文路径,不要覆盖旧文件,因为可能是打包环境残留的 tensorflow 依赖冲突。

请查阅相关文档:

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