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

115.63* Posted at: 6 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 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: tf

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: M:/耶鲁大学公开课_聆听音乐/耶鲁大学开放课程:聆听音乐/耶鲁大学开放课程:聆听音乐.Open.Yale.course:Listening.to.Music.23.Chi_Eng.640X360-YYeTs人人影视制作.mp4,
输出结果保存到文件夹: M:/耶鲁大学公开课_聆听音乐/耶鲁大学开放课程:聆听音乐/_video_out/耶鲁大学开放课程:聆听音乐.Open.Yale.course:Listening.to.Music.23.Chi_Eng.640X360-YYeTs人人影视制作-mp4,
临时文件夹: J:/Softwares/win-pyvideotrans-v4.06/tmp/16816/9b5ea8b297
已选 清理已存在
未选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:


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

1 Replies

Backend should be defined in the BACKENDS_MAPPING. Offending backend: tf 错误表明 faster-whisper 的底层 CTranslate2 库尝试使用 TensorFlow 作为后端,但该后端不被支持(CT2 仅支持 defaultcpucuda 等)。这一般由环境变量冲突或模型文件损坏导致。

解决办法:

  1. 清理模型缓存并重新下载:关闭软件,找到 软件目录/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo 文件夹,将其删除,然后重新启动软件,让软件自动重新下载该模型。
  2. 检查系统环境变量:确保系统或用户环境变量中没有设置 CT2_BACKENDCT2_USE_TF 等指向 TensorFlow 的值(若有则删除)。
  3. 更换为 openai-whisper 渠道:若上述无效,在主界面将 ASR Channel 切换为 openai-whisper(本地内置) 并选用 large-v3 模型作为临时替代。
  4. 尝试更换模型:改为 mediumbase 模型,看是否同样报错,以排除 large-v3-turbo 模型文件损坏的可能。

如果问题依然存在,请提供 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