#7422 [DEBUG] app_cfg.proxy='http://127.0.0.1:8800'[DEBUG] 可以使用 huggingface.co[DEBUG] 获取到下载锁,开始从 hf下载 mobiuslabsgmbh/faster-wh

5.8**5 Posted at: 1 hour ago

[DEBUG] app_cfg.proxy='http://127.0.0.1:8800'
[DEBUG] 可以使用 huggingface.co
[DEBUG] 获取到下载锁,开始从 hf下载 mobiuslabsgmbh/faster-whisper-large-v3-turbo
[DEBUG] [新进程任务 开始:title='Model: large-v3-turbo']
[DEBUG] 新进程任务 参数:kwargs={'detect_language': 'en', 'model_name': 'large-v3-turbo', 'logs_file': 'D:/workplace/pyvideotrans/tmp/22384/ca94b17dc8/faster-en-1789712012.8197303.log', 'is_cuda': True, 'no_speech_threshold': 0.6, 'threshold': 0.45, 'condition_on_previous_text': False, 'audio_file': 'D:/workplace/pyvideotrans/tmp/22384/ca94b17dc8/en.wav', 'local_dir': 'D:/workplace/pyvideotrans/models/models--mobiuslabsgmbh--faster-whisper-large-v3-turbo', 'compute_type': 'default', 'jianfan': False, 'audio_duration': 122944, 'hotwords': '', 'prompt': None, 'beam_size': 5, 'best_of': 5, 'temperature': '0.0', 'repetition_penalty': 1.0, 'compression_ratio_threshold': 2.4, 'max_speech_ms': 5000, 'min_speech_ms': 3000, 'uuid': 'ca94b17dc8', 'subtitle_srt': 'D:/wo
......
sider passing CUDA_LAUNCH_BLOCKING=1.\nCompile with TORCH_USE_CUDA_DSA to enable device-side assertions.\n"}\n'
[ERROR] 本次配音全部失败:{'code': 6, 'msg': 'CUDA error: no kernel image is available for execution on the device\nCUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.\nFor debugging consider passing CUDA_LAUNCH_BLOCKING=1.\nCompile with TORCH_USE_CUDA_DSA to enable device-side assertions.\n'}
[ERROR] 单视频模式翻译失败配音全部失败 {'code': 6, 'msg': 'CUDA error: no kernel image is available for execution on the device\nCUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.\nFor debugging consider passing CUDA_LAUNCH_BLOCKING=1.\nCompile with TORCH_USE_CUDA_DSA to enable device-side assertions.\n'}
Traceback (most recent call last):
File "D:\workplace\pyvideotrans\videotrans\task\only_one.py", line 107, in run

trk.dubbing()

File "D:\workplace\pyvideotrans\videotrans\task\_stage_dubbing.py", line 24, in dubbing

self._tts()

File "D:\workplace\pyvideotrans\videotrans\task\_stage_dubbing.py", line 101, in _tts

run_tts(

File "D:\workplace\pyvideotrans\videotrans\tts\__init__.py", line 232, in run

return _cls(**kwargs).run()  # type:ignore

File "D:\workplace\pyvideotrans\videotrans\tts\_base.py", line 139, in run

raise DubbingSrtError(tr("Dubbing failed") + str(self.error))

videotrans.configure.excepts.DubbingSrtError: 配音全部失败 {'code': 6, 'msg': 'CUDA error: no kernel image is available for execution on the device\nCUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.\nFor debugging consider passing CUDA_LAUNCH_BLOCKING=1.\nCompile with TORCH_USE_CUDA_DSA to enable device-side assertions.\n'}
image
image
image

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:你使用的配音渠道是 clone-voice(本地API)(tts_type=31),报错来自该本地服务返回的 CUDA error: no kernel image is available for execution on the device。这说明你的显卡算力与本地 clone-voice 服务所编译的 CUDA 内核不匹配(常见于较新的 40 系/50 系显卡,或服务端 PyTorch 版本过老、未包含你的 GPU 架构 sm_XX 内核)。注意:这不是 pyVideoTrans 主程序的问题,而是你自行部署的那个 clone-voice 服务的 CUDA 环境问题。

补充:知识库中 clone-voice 渠道标注为“已不维护”,且该报错属于本地服务端环境问题,建议优先更换为官方内置的克隆渠道。

解决方案(按推荐顺序):

  1. 改用内置克隆配音渠道(最推荐,绕过该问题)
    在主界面「字幕配音」渠道下拉中,改为 OmniVoice-TTS(内置)Qwen3-TTS(内置) / Confucius-TTS(内置) / F5-TTS(内置) 等,配音角色选择 clone,即可实现原音色克隆,不再依赖你本地的 clone-voice 服务。
  2. 若必须使用本地 clone-voice 服务,则修复其 CUDA 环境

    • 升级该服务所用 PyTorch 到与显卡架构匹配的版本(40系需 cu118+ / 50系需 cu128+),重新安装。
    • 或在该服务的启动环境变量中临时禁用 GPU,改用 CPU 推理:CUDA_VISIBLE_DEVICES="",再重启服务。
    • 或升级显卡驱动到最新版。
  3. 确认参考音频合规(避免修复后仍报其他错)
    克隆需参考音频时长在 3~10 秒,请确保高级选项「最短语音持续」≥3000ms。你日志中第 1、2 条参考片段(17.1s→20.76s 约 3.66s,21.88s→26.04s 约 4.16s)符合要求。
  4. 若问题依旧,请提供你本地 clone-voice 服务的部署方式、PyTorch 版本、显卡型号,以及该服务的日志。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource