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

Error occurred when executing DeepFuzeFaceSwap #5

Open Zakutu opened 2 weeks ago

Zakutu commented 2 weeks ago

Error occurred when executing DeepFuzeFaceSwap:

C:\ComfyUI_windows_portable\ComfyUI\output\deepfuze\faceswap_17187334906389506.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 1018, in faceswampgenerate return load_video_cv(faceswap_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 weeks ago

Are you using windows machine? currently it is not supporting cuda environment, We are working on it

iordcalin commented 2 weeks ago

Same problem for me as well.I'm using the official workflow and your own video /image assets

SamKhoze commented 2 weeks ago

@iordcalin The error message suggests most likely due to your installation. Make sure OpenCV is installed, go to your comfyui manager use the pip install tool type opencv-python , and click ok. I recommend deleting your DeepFuze folder and following the installation instructions for Windows or Mac. Additional steps are required to make this work because of the nature of Lipsync Generation and Voice Cloning. If the error remains the same please let us know.

SamKhoze commented 2 weeks ago

@iordcalin & @Zakutu you will get the cv load error If you have selected MPS or CUDA in your device options, please note that MPS is for MAC and CUDA will be released later. For now, you can use it on CPU, which will take a longer time if you apply face enhancer and frame enhancers."

iordcalin commented 2 weeks ago

@SamKhoze CPU is selected in the DeepFuze FaceSwap,is there another way to set the device options? I installed opencv and still getting this error...

FLYleoYBQ commented 2 weeks ago

same question,When the opencv installation is complete, a message indicating that cv cannot be loaded is displayed

Rex-Liu1027 commented 1 week ago

same question,When the opencv installation is complete, a message indicating that cv cannot be loaded is display

Hi,is it compatibled with Linux?thx~

SamKhoze commented 1 week ago

@Rex-Liu1027 Yes, follow the Mac installation via conda env. Once it's installed, I would appreciate it if you could document it and share with me. I can add it to the README.md. It will work with CPU, still I'm trying to find a way how to enable CUDA installation, the code is written for CUDA.