본문 바로가기
프로그램 에러

StabilityMatrix img2vid Comfy Error Node execution encountered an CUDA error: launch timed out and was terminated CUDA kernel errors

by 젤리아드 2024. 11. 4.
반응형

 

StabilityMatrix"image to video" generating 도중 발생한 오류

Comfy Error
Node execution encountered an error
{
"prompt_id":
"node_id": "Sampler",
"node_type": "KSampler",
"executed": [
"SvdlmgToVidConditioning",
"Sampler_ScalePrimary_LatentUpscale",
"ControlNet_Loadlmage",
"LinearCfgGuidance",
"ImageOnlyCheckpointLoader"
],
"exception_message": "CUDA error: the launch timed out and was terminated 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
\u0060TORCH_USE_CUDA_DSA\u0060 to enable device-side assertions.",
exception_type": "RuntimeError",
에러 메시지

Comfy Error
Node execution encountered an error

...생략...

"exception_message": "CUDA error: the launch timed out and was terminated 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
\u0060TORCH_USE_CUDA_DSA\u0060 to enable device-side assertions."

 

이 오류를 해결하려면 일단 에러 메시지 창을 닫고 프로젝트 화면에서 출력 비디오의 크기를 확인합니다. 

Stability Matrix
New Project
Image Input
Width: 2048, Height: 2048
비디오 크기

Width, Height 아래 숫자가 출력 비디오의 크기입니다.

기존에 세팅되어 있는 크기에서 절반 정도를 줄입니다.

 

Width: 1024
Height: 1024
비디오 크기 축소

만약 기존에 2048로 되어 있었다면 1024로 축소합니다.

1024로 되어 있었다면 512로 축소합니다.

 

Stability Matrix
Packages > ComfyUI
Restart
ComfyUI 재시작

Packages > ComfyUI 메뉴에서 Restart 버튼을 누릅니다.

(Stop 버튼 누른 다음에 Launch 버튼을 눌러도 됩니다)

 

ComfyUI 로드가 완료될 때까지 기다립니다.

로드 완료 후 video 생성을 다시 시도해 봅니다.

같은 오류가 발생할 경우 비디오 크기를 절반 더 줄이고 ComfyUI 재시작, 비디오 생성을 반복합니다.

오류가 발생하지 않을 때까지 비디오 크기를 2048 → 1024 → 512 → 256 → 128... 순서로 줄여봅니다.

아무리 줄여도 오류가 계속 발생한다면 PC 업그레이드를 고민해 봐야 합니다.

 

 

 

 

 

반응형

댓글