#3355 TaskCfg(cache_folder='D:/pyVideoTran/win-pyvideotrans-v3.96-24/tmp/24544/12f0bcc1bc', target_dir='D:/tkhub/downloads/测试/

138.2* Posted at: 1 day ago 👁18

配音阶段出错 [clone-voice(本地)] {'code': 6, 'msg': 'CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with TORCH_USE_CUDA_DSA to enable device-side assertions. '}
Traceback (most recent call last):
File "videotrans\task\job.py", line 214, in run
File "videotrans\task\trans_create.py", line 677, in dubbing
File "videotrans\task\trans_create.py", line 953, in _tts
File "videotrans\tts\__init__.py", line 337, in run
File "videotrans\tts\_base.py", line 189, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_clone.py", line 70, in _run
RuntimeError: {'code': 6, 'msg': 'CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with TORCH_USE_CUDA_DSA to enable device-side assertions. '}
TaskCfg(cache_folder='D:/pyVideoTran/win-pyvideotrans-v3.96-24/tmp/24544/12f0bcc1bc', target_dir='D:/tkhub/downloads/测试/_video_out/douyin_阳光科普_7572841804799624128-mp4', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language='简体中文', target_language='英语', source_language_code='zh-cn', target_language_code='en', source_sub='D:/tkhub/downloads/测试/_video_out/douyin_阳光科普_7572841804799624128-mp4/zh-cn.srt', target_sub='D:/tkhub/downloads/测试/_video_out/douyin_阳光科普_7572841804799624128-mp4/en.srt', source_wav='D:/pyVideoTran/win-pyvideotrans-v3.96-24/tmp/24544/12f0bcc1bc/zh-cn.wav', source_wav_output='D:/tkhub/downloads/测试/_video_out/douyin_阳光科普_7572841804799624128-mp4/zh-cn.m4a', target_wav='D:/pyVideoTran/win-pyvideotrans-v3.96-24/tmp/24544/12f0bcc1bc/target.wav', target_wav_output='D:/tkhub/downloads/测试/_video_out/douyin_阳光科普_7572841804799624128-mp4/en.m4a', subtitles='', novoice_mp4='D:/pyVideoTran/win-pyvideotrans-v3.96-24/tmp/24544/12f0bcc1bc/novoice.mp4', noextname='douyin_阳光科普_7572841804799624128', shibie_audio=None, targetdir_mp4='D:/tkhub/downloads/测试/_video_out/douyin_阳光科普_7572841804799624128-mp4/douyin_阳光科普_7572841804799624128.mp4', instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=1, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', copysrt_rawvideo=False, clear_cache=True, translate_type=5, tts_type=25, recogn_type=0, model_name='medium', voice_autorate=True, video_autorate=True, is_cuda=True, name='D:/tkhub/downloads/测试/douyin_阳光科普_7572841804799624128.mp4', basename='douyin_阳光科普_7572841804799624128.mp4', ext='mp4', dirname='D:/tkhub/downloads/测试', shound_del_name=None, uuid='12f0bcc1bc', remove_silent_mid=False, align_sub_audio=True, enable_diariz=True, nums_diariz=1, rephrase=0, only_out_mp4=True, fix_punc=False, recogn2pass=True)


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:zh
root_dir:D:/pyVideoTran/win-pyvideotrans-v3.96-24 我已经更新到了cuda13.1 我的显卡是rtx5060ti

1 Replies

这是由于 clone-voice 声音克隆工具所需的 PyTorch/CUDA 版本与您当前安装的 CUDA 13.1 不兼容导致的。错误信息 no kernel image is available for execution on the device 表明 PyTorch 无法为您的显卡(RTX 5060 Ti)和 CUDA 13.1 组合找到可执行的内核。

解决方案:

  1. 降级 CUDA 版本:pyVideoTrans 内置的 PyTorch 版本主要适配 CUDA 12.8。请卸载 CUDA 13.1,并安装 CUDA 12.8 及对应的 cuDNN 9.11 或更高版本。
  2. 验证安装:安装完成后,在 CMD 中运行 nvcc -V 确认版本为 12.8,运行 nvidia-smi 确认驱动支持。
  3. 检查环境变量:确保系统环境变量 PATH 中包含 CUDA 12.8 的 binlib 目录路径。
  4. 重启软件:完成上述步骤后,重启 pyVideoTrans 再尝试使用 clone-voice 功能。

替代方案(如果不想降级 CUDA):

  • 暂时使用其他无需本地 GPU 计算的配音渠道,例如 Edge-TTS(免费在线)或配置其他在线 TTS API。
  • 等待 clone-voice 项目更新以支持 CUDA 13.1 及更新的 PyTorch 版本。

请查阅相关文档:

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.

Related resource

Similar issues already exist