#6413 Calculated padded input size per channel: (6). Kernel size: (7). Kernel size can't be greater than actual input size,Tra

2a06:**:102 Posted at: 2 hours ago

Calculated padded input size per channel: (6). Kernel size: (7). Kernel size can't be greater than actual input size,Traceback (most recent call last):
File "videotrans\process\qwen_tts.py", line 127, in qwen3tts_fun
File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\torch\utils\_contextlib.py", line 116, in decorate_context

return func(*args, **kwargs)

File "qwen_tts\inference\qwen3_tts_model.py", line 568, in generate_voice_clone

prompt_items = self.create_voice_clone_prompt(ref_audio=ref_audio, ref_text=ref_text, x_vector_only_mode=x_vector_only_mode)

File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\torch\utils\_contextlib.py", line 116, in decorate_context

return func(*args, **kwargs)

File "qwen_tts\inference\qwen3_tts_model.py", line 427, in create_voice_clone_prompt

enc = self.model.speech_tokenizer.encode(ref_wavs_for_code, sr=ref_sr_for_code[0])

File "qwen_tts\inference\qwen3_tts_tokenizer.py", line 252, in encod
......
ward

hidden_states = layer(hidden_states, padding_cache=padding_cache)

File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\torch\nn\modules\module.py", line 1751, in _wrapped_call_impl

return self._call_impl(*args, **kwargs)

File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\torch\nn\modules\module.py", line 1762, in _call_impl

return forward_call(*args, **kwargs)

File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\transformers4576\models\mimi\modeling_mimi.py", line 340, in forward

hidden_states = self.conv(hidden_states)

File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\torch\nn\modules\module.py", line 1751, in _wrapped_call_impl

return self._call_impl(*args, **kwargs)

File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\torch\nn\modules\module.py", line 1762, in _call_impl

return forward_call(*args, **kwargs)

File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\torch\nn\modules\conv.py", line 375, in forward

return self._conv_forward(input, self.weight, self.bias)

File "C:\Users\pc\Desktop\win-pyvideotrans-v4.08-0802\_internal\torch\nn\modules\conv.py", line 370, in _conv_forward

return F.conv1d(

RuntimeError: Calculated padded input size per channel: (6). Kernel size: (7). Kernel size can't be greater than actual input size

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/pc/Desktop/8月6日(2).mp4,
输出结果保存到文件夹: C:/Users/pc/Desktop/云南/8月6日(2)-mp4,
临时文件夹: C:/Users/pc/Desktop/win-pyvideotrans-v4.08-0802/tmp/5872/add933c1e6
未选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:Google识别API(免费), model_name: , 发音语言: 英语, 断句方式:默认断句
翻译渠道:M2M100(内置),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Qwen3-TTS(内置), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.08
frozen:True
language:zh
root_dir:C:/Users/pc/Desktop/win-pyvideotrans-v4.08-0802

1 Replies

这是Qwen3-TTS(内置)在clone模式下,截取的参考音频片段过短导致的输入尺寸错误(音频长度小于模型卷积核大小),并非软件损坏。

请按以下步骤解决:

  1. 打开 菜单 → 工具 → 高级选项 → 语音识别参数,设置:

    • 最短语音持续(毫秒)30004000
    • 最长语音持续(秒)6~10
    • 勾选 合并过短字幕到邻近,避免生成过短片段作为克隆参考音频。
  2. 在克隆模式下不要使用 LLM重新断句,并确认主界面未勾选“二次识别”中的不合理断句。
  3. 确认显存充足;若显存较小,建议关闭CUDA或改用较小模型。
  4. 如果仍报错,请升级到最新版本补丁 v4.08-0802(你的版本号显示v4.08,确认是否已覆盖该补丁)。

请查阅相关文档:

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