ComfyUI-DeepFuze icon indicating copy to clipboard operation
ComfyUI-DeepFuze copied to clipboard

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

Open Nikolai1216 opened this issue 1 year ago • 10 comments

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

Nikolai1216 avatar Jun 22 '24 02:06 Nikolai1216

me too

mylonesky-bot avatar Jun 26 '24 06:06 mylonesky-bot

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,

heiheiwodeo avatar Jun 27 '24 12:06 heiheiwodeo

Wow still no solution

Nikolai1216 avatar Jun 29 '24 22:06 Nikolai1216

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\deepfuze_00004_.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

Steelman14aUA avatar Jun 30 '24 09:06 Steelman14aUA

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, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"

piovis2023 avatar Jul 17 '24 12:07 piovis2023

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

Bortus-AI avatar Jul 22 '24 16:07 Bortus-AI

@SamKhoze u/SamKhoze /SamKhoze

Can you please help?

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

piovis2023 avatar Jul 22 '24 19:07 piovis2023

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

SamKhoze avatar Jul 22 '24 19:07 SamKhoze

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

piovis2023 avatar Jul 22 '24 20:07 piovis2023

将NODES.PY中的path_cwd =改为完整路径.比如:path_cwd = os.path.abspath("D:\ComfyUI\custom_nodes\ComfyUI-DeepFuze")

Eikwang avatar Jun 06 '25 11:06 Eikwang