#9002 parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the deviceASR Error:

2804**8781 Posted at: 2 hours ago

parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the deviceASR Error:faster-whisper (Local), Trans Error: M2M100(Local), Dubbing Error:Edge-TTS(Free)
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 68, in run
File "videotrans\task\trans_create.py", line 585, in trans
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 69, in run
File "videotrans\translator\_base.py", line 98, in _run_text
File "videotrans\translator\_m2m100.py", line 90, in _item_task
RuntimeError: parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device
TaskCfgVTT(uuid='61a3c8cea5', name='F:/ARQUIVOS_ENORMES/IA para traduzir videos/This Woman Cured Her Cancer with an Insane Method/This Woman Cured Her Cancer with an Insane Method.mp4', dirname='F:/ARQUIVOS_ENORMES/IA para traduzir videos/This Woman Cured Her Cancer with an Insane Method', noextname='This Woman Cured Her Cancer with an Insane Method', basename='This Woman Cured Her Cancer with an Insane Method.mp4', ext='mp4', target_dir='F:/ARQUIVOS_ENORMES/IA para traduzir videos/This Woman Cured Her Cancer with an Insane Method/_video_out/This Woman Cured Her Cancer with an Insane Method-mp4', cache_folder='F:/ARQUIVOS_ENORMES/IA para traduzir videos/win-pyvideotrans-v4.01-0602/tmp/15812/61a3c8cea5', is_cuda=False, source_language='English', source_language_code='en', source_sub='F:/ARQUIVOS_ENORMES/IA para traduzir videos/This Woman Cured Her Cancer with an Insane Method/_video_out/This Woman Cured Her Cancer with an Insane Method-mp4/en.srt', source_wav='F:/ARQUIVOS_ENORMES/IA para traduzir videos/win-pyvideotrans-v4.01-0602/tmp/15812/61a3c8cea5/en.wav', source_wav_output='F:/ARQUIVOS_ENORMES/IA para traduzir videos/This Woman Cured Her Cancer with an Insane Method/_video_out/This Woman Cured Her Cancer with an Insane Method-mp4/en.m4a', target_language='Portuguese', target_language_code='pt', target_sub='F:/ARQUIVOS_ENORMES/IA para traduzir videos/This Woman Cured Her Cancer with an Insane Method/_video_out/This Woman Cured Her Cancer with an Insane Method-mp4/pt.srt', target_wav='F:/ARQUIVOS_ENORMES/IA para traduzir videos/win-pyvideotrans-v4.01-0602/tmp/15812/61a3c8cea5/target.wav', target_wav_output='F:/ARQUIVOS_ENORMES/IA para traduzir videos/This Woman Cured Her Cancer with an Insane Method/_video_out/This Woman Cured Her Cancer with an Insane Method-mp4/pt.m4a', translate_type=2, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Antonio(Male/BR)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/ARQUIVOS_ENORMES/IA para traduzir videos/This Woman Cured Her Cancer with an Insane Method/_video_out/This Woman Cured Her Cancer with an Insane Method-mp4/This Woman Cured Her Cancer with an Insane Method.mp4', novoice_mp4='F:/ARQUIVOS_ENORMES/IA para traduzir videos/win-pyvideotrans-v4.01-0602/tmp/15812/61a3c8cea5/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='F:/ARQUIVOS_ENORMES/IA para traduzir videos/win-pyvideotrans-v4.01-0602/tmp/15812/61a3c8cea5/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.19045-SP0
version:v4.01
frozen:True
language:en
root_dir:F:/ARQUIVOS_ENORMES/IA para traduzir videos/win-pyvideotrans-v4.01-0602

1 Replies

#1 DeepSeek reply at 2 hours ago

The core cause: the M2M100 local translation model calls PyTorch and, whenever CUDA is detected, automatically tries to run on the GPU (this is not controlled by the Enable CUDA Acceleration checkbox on the main window, which is why is_cuda=False still crashed). The cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device error means the PyTorch build bundled with this version contains no compiled kernels for your graphics card's compute capability (or your GPU driver is too old to match that CUDA runtime). Therefore the model cannot execute.

Solutions (in the order I recommend):

  1. Direct workaround: change the translation channel. In v4.01, the M2M100 channel has no "CPU only" switch. Change Translation Services from M2M100(Local) to Google Translate(Free), Microsoft Translate(Free), or an AI channel such as DeepSeek. English to Portuguese works fine with these channels, and you can rerun the task directly.
  2. If you must use M2M100 locally: update the NVIDIA graphics driver to the latest version; if the error persists, your graphics card's architecture is not supported by the PyTorch version bundled with v4.01, so you would need to upgrade to a newer version to solve it.
  3. Upgrade the software. You are still on v4.01 (from 0602); this is quite an old version and has known compatibility problems. Download the latest full build (the 2.6GB+ full build, not the small patch) and overwrite it. The latest version, v4.19, has substantially reworked local model device handling.
  4. Also note: your video path contains spaces and is very deep (F:/ARQUIVOS_ENORMES/IA para traduzir videos/...). Although that is not the direct cause of this error, move the video to a shallow directory with no spaces or special characters (e.g. F:/videos/video1.mp4) to rule out other FFmpeg/path issues.

Please refer to the related documentation:

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