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
283 stars 32 forks source link

mp4 could not be loaded with cv #40

Open algisju opened 1 month ago

algisju commented 1 month ago

D:\comfyui\ComfyUI\output\deepfuze\faceswap_1723104173818295.mp4 could not be loaded with cv.

File "D:\comfyui\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\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 "D:\comfyui\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\ComfyUI\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 928, in faceswampgenerate return load_video_cv(faceswap_filename,0,'Disabled',512,512,0,0,1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\ComfyUI\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 446, in load_video_cv (width, height, fps, duration, total_frames, target_frame_time) = next(gen) ^^^^^^^^^ File "D:\comfyui\ComfyUI\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 365, in cv_frame_generator raise ValueError(f"{video} could not be loaded with cv.")

specblades commented 1 month ago

Same here.

It looks like this error occurs because the video is not saved to the correct folder or is saved with a different name. The solution with reinstalling onnxruntime does not work. onnxruntime is definitely installed correctly.

ItsmeEsal commented 1 month ago

In my case, i have reinstalling onnxruntime-gpu to spesific version, not new version. try install onnxruntime-gpu version 1.18.0, in my case this version work fine. maybe this node not supported new version of onnxruntime-gpu

algisju commented 1 month ago

thanks, but am not tech-savvy enough to try that. I might (probably) end with nothing working anymore. I hope we get an update soon...

specblades commented 1 month ago

I installed onnxruntime-gpu==1.18.0 but the error is still here

Cal-DCosta commented 4 weeks ago

Found a solution and it works for me to OpenCV zlibwapi.dll Missing Error in ComfyUI DeepFuze

Uninstall onnxruntime-gpu .\python_embeded\python.exe -m pip uninstall onnxruntime-gpu==1.18.0

Reinstall onnxruntime-gpu .\python_embeded\python.exe -m pip install onnxruntime-gpu

Fix Missing zlibwapi.dll

Locate zlib.dll in: C:\Program Files\NVIDIA Corporation\Nsight Systems 2022.4.2\host-windows-x64 Copy and rename it to zlibwapi.dll in: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\ Run your workflow again in ComfyUI to ensure the issue is resolved.

Hope this also works for you guys.

specblades commented 3 weeks ago

It didn't help me(