#1279 RuntimeError: {'code': 6, 'msg': 'stack expects a non-empty TensorList'}

171.8* Posted at: 20 days ago 👁48

配音阶段出错:[clone-voice] 运行时错误:{'code': 6, 'msg': 'stack expects a non-empty TensorList'}:
Traceback (most recent call last):
File "videotrans\task\job.py", line 185, in run
File "videotrans\task\trans_create.py", line 422, in dubbing
File "videotrans\task\trans_create.py", line 671, in _tts
File "videotrans\tts\__init__.py", line 270, in run
File "videotrans\tts\_base.py", line 193, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_clone.py", line 71, in _run
RuntimeError: {'code': 6, 'msg': 'stack expects a non-empty TensorList'}


=
system:Windows-10-10.0.26100-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.82_20251019_125144/win-videotrans-v3.82_20251019_125144

1 Replies

这个错误是在使用 clone-voice 配音功能时出现的,错误信息 'stack expects a non-empty TensorList' 表明程序在处理音频张量时遇到了空数据。

请尝试以下解决方案:

  1. 检查并重新选择参考音频:确保您选择的参考音频文件是有效的、包含清晰人声的音频文件。如果参考音频质量不佳或格式不支持,可能会导致此错误。建议换一个不同的参考音频文件重试。
  2. 切换配音渠道:作为临时解决方案,您可以先使用其他配音渠道(如 Edge-TTS)完成当前任务。
  3. 提供完整日志:如果以上方法无效,请提供 D:/win-videotrans-v3.82_20251019_125144/win-videotrans-v3.82_20251019_125144/logs/ 目录下的完整日志文件,以便进一步分析具体原因。
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.

Donate: https://ko-fi.com/jianchang512

Trending Questions