AInseven / ComfyUI-fastblend

fastblend for comfyui, and other nodes that I write for generate video. rebatch image, my openpose
188 stars 18 forks source link

CuPy Error #4

Open marshal2107 opened 9 months ago

marshal2107 commented 9 months ago

When running your example workflow I am having this problem.

Do you know what could be causing it?

Log: Error occurred when executing SmoothVideo:

CuPy failed to load nvrtc64_120_0.dll: FileNotFoundError: Could not find module 'nvrtc64_120_0.dll' (or one of its dependencies). Try using the full path with constructor syntax.

File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\smoothVideo.py", line 110, in execute frames = smooth_video( File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\api.py", line 75, in smooth_video frames=FastModeRunner().run(frames_guide, frames_style, batch_size=batch_size, window_size=window_size, File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\runners\fast.py", line 125, in run table_l = table_manager.build_remapping_table(frames_guide, frames_style, patch_match_engine, batch_size, desc="Fast Mode Step 1/4") File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\runners\fast.py", line 44, in build_remappingtable , target_style = patch_match_engine.estimate_nnf(source_guide, target_guide, source_style) File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\patch_match.py", line 291, in estimate_nnf nnf = self.initialize_nnf(source_guide.shape[0]) if level==0 else self.update_nnf(nnf, level) File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\ComfyUI\custom_nodes\AInseven\FastBlend\patch_match.py", line 254, in initialize_nnf cp.repeat(cp.arange(height), width).reshape(height, width), File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy_creation\ranges.py", line 60, in arange _arange_ufunc(typ(start), typ(step), ret, dtype=dtype) File "cupy_core_kernel.pyx", line 1375, in cupy._core._kernel.ufunc.call File "cupy_core_kernel.pyx", line 1402, in cupy._core._kernel.ufunc._get_ufunc_kernel File "cupy_core_kernel.pyx", line 1082, in cupy._core._kernel._get_ufunc_kernel File "cupy_core_kernel.pyx", line 94, in cupy._core._kernel._get_simple_elementwise_kernel File "cupy_core_kernel.pyx", line 82, in cupy._core._kernel._get_simple_elementwise_kernel_from_code File "cupy_core\core.pyx", line 2254, in cupy._core.core.compile_with_cache File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 484, in _compile_module_with_cache return _compile_with_cache_cuda( File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 499, in _compile_with_cache_cuda arch = _get_arch() File "cupy_util.pyx", line 64, in cupy._util.memoize.decorator.ret File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 148, in _get_arch nvrtc_max_compute_capability = _get_max_compute_capability() File "cupy_util.pyx", line 64, in cupy._util.memoize.decorator.ret File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 126, in _get_max_compute_capability major, minor = _get_nvrtc_version() File "P:\STABLEDIFFUSION\ComfyUI_windows_portable\python_embeded\lib\site-packages\cupy\cuda\compiler.py", line 115, in _get_nvrtc_version _nvrtc_version = nvrtc.getVersion() File "cupy_backends\cuda\libs\nvrtc.pyx", line 56, in cupy_backends.cuda.libs.nvrtc.getVersion File "cupy_backends\cuda\libs\nvrtc.pyx", line 57, in cupy_backends.cuda.libs.nvrtc.getVersion File "cupy_backends\cuda\libs_cnvrtc.pxi", line 72, in cupy_backends.cuda.libs.nvrtc.initialize File "cupy_backends\cuda\libs_cnvrtc.pxi", line 76, in cupy_backends.cuda.libs.nvrtc._initialize File "cupy_backends\cuda\libs_cnvrtc.pxi", line 143, in cupy_backends.cuda.libs.nvrtc._get_softlink File "cupy_backends\cuda_softlink.pyx", line 32, in cupy_backends.cuda._softlink.SoftLink.__ini

AInseven commented 9 months ago

You need install CUDA Toolkit. https://developer.nvidia.com/cuda-downloads

inferno46n2 commented 8 months ago

Did you ever figure this out?

aswordok commented 5 months ago

"C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\nvidia\cuda_nvrtc\bin\nvrtc64_120_0.dll"

copy it to :

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin

Confirm your Path and modify it.