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

Error occurred when executing DeepFuzeFaceSwap: [WinError 267] The directory name is invalid #13

Open Nikolai1216 opened 3 months ago

Nikolai1216 commented 3 months ago

Please help

Error occurred when executing DeepFuzeFaceSwap:

[WinError 267] The directory name is invalid

File "E:\Stability\Data\Packages\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "E:\Stability\Data\Packages\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 "E:\Stability\Data\Packages\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "E:\Stability\Data\Packages\ComfyUI\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 959, in faceswampgenerate result = subprocess.run(command,cwd="ComfyUI/custom_nodes/ComfyUI-DeepFuze",stdout=subprocess.PIPE) File "subprocess.py", line 503, in run File "subprocess.py", line 971, in init File "subprocess.py", line 1456, in _execute_child

Close

mylonesky-bot commented 3 months ago

me too

heiheiwodeo commented 3 months ago

Error occurred when executing DeepFuzeFaceSwap:

[WinError 267] The directory name is invalid

File "D:\ComfyUI-aki-v1.3\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\ComfyUI-aki-v1.3\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-aki-v1.3\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 959, in faceswampgenerate result = subprocess.run(command,cwd="ComfyUI/custom_nodes/ComfyUI-DeepFuze",stdout=subprocess.PIPE) File "D:\ComfyUI-aki-v1.3\python\lib\subprocess.py", line 503, in run with Popen(popenargs, **kwargs) as process: File "", line 217, in sentry_patched_popen_init File "D:\ComfyUI-aki-v1.3\python\lib\subprocess.py", line 971, in init self._execute_child(args, executable, preexec_fn, close_fds, File "D:\ComfyUI-aki-v1.3\python\lib\subprocess.py", line 1456, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

Nikolai1216 commented 3 months ago

Wow still no solution

Steelman14aUA commented 3 months ago

Same here

Prompt executor has been patched by Job Iterator! 1 1 video h265-mp4 {'enhancer': 'gpen_bfr_2048', 'faceswap_model': 'inswapper_128_fp16', 'frame_enhancer': 'ultra_sharp_x4', 'face_detector_model': 'retinaface', 'reference_face_index': 0, 'face_mask_padding_left': 0, 'face_mask_padding_right': 0, 'face_mask_padding_bottom': 0, 'face_mask_padding_top': 0, 'device': 'cuda', 'frame_rate': 25.0, 'loop_count': 0, 'filename_prefix': 'deepfuze', 'pingpong': False, 'save_output': True, 'source_images': ['25', 0], 'target_images': ['22', 0], 'format': 'video/h265-mp4', 'pix_fmt': 'yuv420p10le', 'crf': 22, 'save_metadata': ['save_metadata', 'BOOLEAN', {'default': True}]}
E:\Ai\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite..\video_formats\h265-mp4.json pix_fmt crf save_metadata ['python', './run.py', '--frame-processors', 'face_swapper', '-s', 'E:\Ai\pinokio\api\comfyui.git\app\output\deepfuze00004.png', '-t', 'E:\Ai\pinokio\api\comfyui.git\app\output\deepfuze_00004.mp4', '--face-detector-model', 'retinaface', '-o', 'E:\Ai\pinokio\api\comfyui.git\app\output\deepfuze\faceswap_17197397202485511.mp4', '--face-swapper-model', 'inswapper_128_fp16', '--reference-face-position', '0', '--face-mask-padding', '0', '0', '0', '0', '--headless', '--execution-providers', 'cuda'] !!! Exception during processing!!! [WinError 267] The directory name is invalid Traceback (most recent call last): File "E:\Ai\pinokio\api\comfyui.git\app\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "E:\Ai\pinokio\api\comfyui.git\app\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "E:\Ai\pinokio\api\comfyui.git\app\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "E:\Ai\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-DeepFuze-main\nodes.py", line 959, in faceswampgenerate result = subprocess.run(command,cwd="ComfyUI/custom_nodes/ComfyUI-DeepFuze",stdout=subprocess.PIPE) File "E:\Ai\pinokio\bin\miniconda\lib\subprocess.py", line 503, in run with Popen(popenargs, **kwargs) as process: File "E:\Ai\pinokio\bin\miniconda\lib\subprocess.py", line 971, in init self._execute_child(args, executable, preexec_fn, close_fds, File "E:\Ai\pinokio\bin\miniconda\lib\subprocess.py", line 1456, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, NotADirectoryError: [WinError 267] The directory name is invalid

Prompt executed in 1.22 seconds

piovis2023 commented 2 months ago

Do we have any solutions? I'm getting the same error

The author posted this solution previously. I hope it helps someone here.

However, I followed this and it didn't work for me: "Please make sure not to install this node via git clone unless you are experienced and familiar with building wheels for TTS. The recommended method is to install it via comfy manager. While installing, keep an eye on your terminal to spot any errors. For example, conflicting installations of NumPy or Python could cause issues. If you encounter an error, it is generally easy to fix. I apologize for the unfriendly installation process. Face swapping, lip syncing, and voice cloning are complex installations individually. I have attempted to minimize the difficulties as much as possible, but there is still work to be done."

Here is my error. Thanks in advance to anyone that can help: "[WinError 267] The directory name is invalid

File "D:\00. Standalone Apps\03_comfy\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\00. Standalone Apps\03_comfy\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 "D:\00. Standalone Apps\03_comfy\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\00. Standalone Apps\03_comfy\ComfyUI\custom_nodes\ComfyUI-DeepFuze\nodes.py", line 864, in faceswampgenerate result = subprocess.run(command,cwd="ComfyUI/custom_nodes/ComfyUI-DeepFuze",stdout=subprocess.PIPE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\anujd\miniconda3\envs\comfy118\Lib\subprocess.py", line 548, in run with Popen(popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\anujd\miniconda3\envs\comfy118\Lib\subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\anujd\miniconda3\envs\comfy118\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"

Bortus-AI commented 2 months ago

Having same issue and did install via comfui manager. Tried on 2 fresh installs of comfyui with both portable and nonportable versions.

piovis2023 commented 2 months ago

@SamKhoze u/SamKhoze /SamKhoze

Can you please help?

We all really want to try your project. It looks really interesting.

SamKhoze commented 2 months ago

@Bortus-AI @piovis2023 I tested everything is working, perhaps is your installation, IMG_9237

piovis2023 commented 2 months ago

Thanks @SamKhoze

Any ideas what we could do different? Is it an issue with Windows 11 OS?

Did you reinstall yours from fresh? If Comfy manager doesn't fix the nodes, whats the best way forwards? Could I send you my terminal response when I try to install?

Thanks