#6122 配音阶段出错 [F5-TTS(本地内置)] Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_textTraceback (mo

2409:8a28* Posted at: 1 day ago

配音阶段出错 [F5-TTS(本地内置)] Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_text
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 154, in process_task

File "videotrans\task\dubbing.py", line 51, in dubbing

File "videotrans\task\dubbing.py", line 204, in _tts

File "videotrans\tts\__init__.py", line 207, in run

File "videotrans\tts\_base.py", line 95, in run

File "videotrans\tts\_f5tts.py", line 59, in _exec

File "", line 1027, in _find_and_load

File "", line 1006, in _find_and_load_unlocked

File "", line 688, in _load_unlocked

File "pyimod02_importers.py", line 457, in exec_module

File "videotrans\process\f5_tts.py", line 22, in

File "", line 1027, in _find_and_load

File "", line 1006, in _find_and_load_unlocked

File "", line 688, in _load_unlocked

File "pyimod02_importers.py", line 457, in exec_module

File "f5_tts\api.py", line 11, in

from f5_tts.infer.utils_infer import (

File "", line 1027, in _find_and_load

File "", line 1006, in _find_and_load_unlocked

File "", line 688, in _load_unlocked

File "pyimod02_importers.py", line 457, in exec_module

File "f5_tts\infer\utils_infer.py", line 28, in

from transformers import pipeline

File "I:\videotrans\_internal\transformers\__init__.py", line 786, in

sys.modules[__name__] = _LazyModule(

File "I:\videotrans\_internal\transformers\utils\import_utils.py", line 2009, in init

raise ValueError(

ValueError: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tensorflow_text
cfg=TaskCfgTTS(uuid='da21c8b408', name='//winnas/e/迅雷下载/250520/05-evolvedfights.21.03.12.rebecca.vanguard.vs.oliver.davis.zh.srt', dirname='//winnas/e/迅雷下载/250520', noextname='05-evolvedfights.21.03.12.rebecca.vanguard.vs.oliver.davis.zh', basename='05-evolvedfights.21.03.12.rebecca.vanguard.vs.oliver.davis.zh.srt', ext='srt', target_dir='I:/videotrans/output/tts', cache_folder='I:/videotrans/tmp/10236/da21c8b408', is_cuda=True, source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code='zh-cn', target_sub='//winnas/e/迅雷下载/250520/05-evolvedfights.21.03.12.rebecca.vanguard.vs.oliver.davis.zh.srt', target_wav='I:/videotrans/output/tts/05-evolvedfights.21.03.12.rebecca.vanguard.vs.oliver.davis.zh.wav', target_wav_output=None, tts_type=2, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='cosy.wav', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.17763-SP0
version:v4.07
frozen:True
language:zh
root_dir:I:/videotrans

1 Replies

这是由于 transformers 库版本升级后,软件打包时残留了旧的 tensorflow_text 模块,导致模块加载冲突。

解决方法

  1. 下载最新补丁包覆盖
    前往 pyVideoTrans 官网 下载适用于 v4.07 的最新补丁包(约 260MB),将其解压后直接覆盖到软件根目录,替换所有同名文件。
  2. 如果仍报错,请下载 完整版压缩包(约 2.6GB)彻底替换整个软件目录。
  3. 操作后务必重启软件,并清空 tmp/ 文件夹内的临时缓存(可手动删除)后再试。
该错误属于打包环境残留,覆盖补丁包即可修复。

请查阅相关文档:

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