#3347 TaskCfg(cache_folder='D:/pyVideoTran/win-pyvideotrans-v3.96-24/tmp/36748/a74a8d3ed7', target_dir='D:/tkhub/downloads/测试/

138.2* Posted at: 2 days ago 👁23

配音阶段出错 [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/36748/a74a8d3ed7', 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/36748/a74a8d3ed7/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/36748/a74a8d3ed7/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/36748/a74a8d3ed7/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='a74a8d3ed7', 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

1 Replies

这是由于 clone-voice 本地 TTS 模型与当前 CUDA 环境不兼容导致的。错误信息 no kernel image is available for execution on the device 表明 PyTorch/CUDA 版本与显卡计算架构不匹配。

解决方案:

  1. 检查并升级 CUDA 版本:clone-voice 等本地 TTS 模型通常需要与 PyTorch 版本匹配的 CUDA 环境。请确保已安装 CUDA 12.8cuDNN 9.11 或更高版本。
  2. 验证显卡兼容性:在 CMD 中运行 nvidia-smi,查看显卡型号和驱动支持的 CUDA 版本。如果使用的是较新的显卡(如 RTX 40/50 系列),可能需要更新显卡驱动。
  3. 临时解决方案(切换配音渠道):如果无法立即解决 CUDA 兼容性问题,建议暂时使用其他配音渠道完成当前任务:

    • 免费渠道:切换到 Edge-TTS
    • 高质量/克隆渠道:切换到 F5-TTSCosyVoice,并确保其外部 API 服务已正确启动。
  4. 更新软件:您当前使用的是 v3.97,已是最新版本。如果问题持续,请关注官方后续更新。

操作步骤:

  1. 在 pyVideoTrans 主界面,点击“配音设置”。
  2. 在“配音渠道”下拉菜单中,选择 Edge-TTS 或其他可用的渠道。
  3. 重新执行视频翻译任务。

请查阅相关文档:

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