SamKhoze / ComfyUI-DeepFuze

DeepFuze is a state-of-the-art deep learning tool that seamlessly integrates with ComfyUI to revolutionize facial transformations, lipsyncing, Face Swapping, Lipsync Translation, video generation, and voice cloning.
https://cogidigm.com/
Other
213 stars 13 forks source link

I'm having a problem working with GPU in the node #18

Open gilushon opened 2 days ago

gilushon commented 2 days ago

Hi, this is an amazing node, so thank you for it! I did all the steps in your YouTube video to install Cuda. I'm having a problem working with GPU in the node, so it is very slow. I have I9 computer with 32 ram, and RTX 4090.

this is the log error,

Error occurred when executing DeepFuzeAdavance:

C:\ComfyUI_windows_portable\ComfyUI\output\deepfuze\enhanced_17197493769867313.mp4 could not be loaded with cv.

File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 1425, in lipsyncgenerate return load_video_cv(filename,0,'Disabled',512,512,0,0,1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 543, in load_video_cv (width, height, fps, duration, total_frames, target_frame_time) = next(gen) ^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 462, in cv_frame_generator raise ValueError(f"{video} could not be loaded with cv.")

SamKhoze commented 2 days ago

@gilushon With 4090 it should work so fast, this error you shared it seems it's a cuDNN and CUDA installation problem. Also for some reason when you install CUDA one of the dll files in the bin folder is missing. I added information in the error section on how you can fix that and there is a CV error section as well. If none of those worked follow the YouTube video for fully uninstalling your CUDA and reinstalling it.

gilushon commented 2 days ago

Sam, Thanks for the quick reply, I did what you wrote about the fix under RERRORS, and it solved the problem.

(Missing zlibwapi.dll error: Search for NVIDIA zlibwapi.dll file, download it and copy it in C:\Program Files\NVIDIA (GPU Computing Toolkit\CUDA\v11.8\bin\zlibwapi.dll)

Now the rendering is 20 times faster. Just one more thing, (in the lip-sync node) I think the frame enhancers don't work, because you don't see any differences between them, the same goes for the enhancer, you don't see any differences between them.

SamKhoze commented 1 day ago

@gilushon i checked it, enhancers are working