hinablue / ComfyUI_3dPoseEditor

MIT License
140 stars 14 forks source link

[Errno 2] No such file or directory:'D:\\ComfyUI\\temp\\3dposeeditor\\OpenPoseEditor_0_pose.png' #22

Closed yelloowdoor closed 1 week ago

yelloowdoor commented 2 months ago

I install the node by ComfyUI Manager, and the node shows up successfully. But after I clicked queue prompt, this error occurred. I checked the folder, no png in it. Is there any way to fix it? I've reinstall it several times.

Error occurred when executing Hina.PoseEditor3D:

[Errno 2] No such file or directory: 'D:\ComfyUI\temp\3dposeeditor\OpenPoseEditor_0_pose.png'

File "d:\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "d:\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:\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "D:\ComfyUI\custom_nodes\ComfyUI_3dPoseEditor\poseEditor3D_node.py", line 54, in output_pose i = Image.open(image_path) File "C:\Users\user\miniconda3\envs\ComfyUI\lib\site-packages\PIL\Image.py", line 3236, in open fp = builtins.open(filename, "rb")

Engineer-D commented 1 month ago

You have to create your own png files and place them in your temp/3dposeeditor folder.

create the pose with the 3d pose editor, click on the triangle in the preview menu (below the lock) then tap each of the images displayed, each one will represent normal, pose, canny depth. save them into your temp folder and you are good to go

Zak525 commented 1 week ago

I encountered the same issue, and I found that the main reason was that when I used the embedded 3D POSE EDITOR in the node, clicking "Generate" did not produce the corresponding PNG images. Therefore, if the node is imported and already contains the names of four images, it is feasible to follow Engineer-D 3dposeeditor 's suggestion: first, generate these four images in the web version of the 3D POSE EDITOR and then place them in the temp/3dposeeditor folder. However, if I create the node myself, the names of these four images will be "undefined," and when the embedded editor's generation function is unavailable, I have no way to proceed.

Zak525 commented 1 week ago

I turn on chrom F12 console, find this error: Error loading extension /extensions/ComfyUI_3dPoseEditor/js/main.js Error: Minified React error #299; visit https://reactjs.org/docs/error-decoder.html?invariant=299 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at gn.createRoot (main.js:40:55756) at LV (main.js:3441:30649) at main.js:3441:30767

yelloowdoor commented 1 week ago

I finally run the workflow successfully. Here are some tips for who encounters the same issue.

Thank you so much for help! I really appreciate @Engineer-D & @Zak525 's support.