jtydhr88 / ComfyUI-InstantMesh

ComfyUI InstantMesh is custom nodes that running InstantMesh into ComfyUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[WinError 3] 系统找不到指定的路径。: 'D:\\ComfyUI\\ComfyUI\\custom_nodes\\ComfyUI-InstantMesh'

laidingq opened this issue · comments

Error occurred when executing InstantMeshLoader:

[WinError 3] 系统找不到指定的路径。: 'D:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-InstantMesh'

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-InstantMesh\run.py", line 335, in run
model,config = load_InstantMeshModel(config_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\custom_nodes\ComfyUI-InstantMesh\run.py", line 88, in load_InstantMeshModel
os.chdir(target_directory)

Hi, 我在里面有一段是靠配接字符串找的路径,你在那变成了D:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-InstantMesh',看起来D:\ComfyUI是你的根目录吧?
我用的目录结构是comfyui解包后默认的路径

我的目录是D:\ComfyUI\custom_nodes\ComfyUI-InstantMesh这样的,但在运行的时候多了 一层comfyui

问下你的python用的什么环境呢?是conda还是自己安装的呢?

py311 torch2.1.2 +cu121 miniconda
环境应该没啥问题,我每天装新出来的各种插件

啊我是想确认一下python的路径在哪里…我做的时候只考虑了comfyui默认的那种解压缩之后的文件夹结构。我这周有时间的时候想想该怎么解决这种情况哈,感谢反馈!

I patched run.py with forward slashes and changing the path to the extension from "ComfyUI\custom_nodes\ComfyUI-InstantMesh" to "custom_nodes/ComfyUI-InstantMesh", and now the downloading of models appears to work properly and the extension appears to work properly on a Linux install of ComfyUI (I say 'appears', because I ran out of VRAM on my old GPU, but it got far enough into the process that I'm quite certain it's working properly!).

@akspa0 thanks to verify, yes, the solution for this problem is quite simple, just change the path in my code, I am considering how to handle the general case

hi, I tried to fix this issue in latest commit 6bc7ed0, please let me know it works or not