Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: [WinError 2] The system cannot find the file specified #21

Open
melanie0901 opened this issue Sep 2, 2024 · 2 comments
Open

Comments

@melanie0901
Copy link

I got Torch 2.1.2 + Cuda 11.8
ninja set on the path

[Prompt Server] web root: E:\C\web
E:\C.ext\Lib\site-packages\diffusers\utils\outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
torch.utils._pytree._register_pytree_node(
E:\C.ext\Lib\site-packages\diffusers\utils\outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
torch.utils.pytree.register_pytree_node(
Traceback (most recent call last):
File "E:\C\nodes.py", line 1941, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "E:\C\custom_nodes\human-parser-comfyui-node_init
.py", line 1, in
from .HumanParserLIPCustomNode import HumanParserLIPCustomNode
File "E:\C\custom_nodes\human-parser-comfyui-node\HumanParserLIPCustomNode.py", line 5, in
from .utils import generate
File "E:\C\custom_nodes\human-parser-comfyui-node\utils.py", line 8, in
from .schp import networks
File "E:\C\custom_nodes\human-parser-comfyui-node\schp\networks_init
.py", line 3, in
from .AugmentCE2P import resnet101
File "E:\C\custom_nodes\human-parser-comfyui-node\schp\networks\AugmentCE2P.py", line 21, in
from ..modules import InPlaceABNSync
File "E:\C\custom_nodes\human-parser-comfyui-node\schp\modules_init.py", line 1, in
from .bn import ABN, InPlaceABN, InPlaceABNSync
File "E:\C\custom_nodes\human-parser-comfyui-node\schp\modules\bn.py", line 10, in
from .functions import *
File "E:\C\custom_nodes\human-parser-comfyui-node\schp\modules\functions.py", line 13, in
_backend = load(name="inplace_abn",
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\C.ext\Lib\site-packages\torch\utils\cpp_extension.py", line 1306, in load
return _jit_compile(
^^^^^^^^^^^^^
File "E:\C.ext\Lib\site-packages\torch\utils\cpp_extension.py", line 1736, in _jit_compile
return _import_module_from_library(name, build_directory, is_python_module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\C.ext\Lib\site-packages\torch\utils\cpp_extension.py", line 2132, in _import_module_from_library
module = importlib.util.module_from_spec(spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing inplace_abn: 找不到指定的模块。

Cannot import E:\C\custom_nodes\human-parser-comfyui-node module for custom nodes: DLL load failed while importing inplace_abn: 找不到指定的模块。

@memx200
Copy link

memx200 commented Oct 15, 2024

Yo my Friend
I was stuck for a while, but using WSL2 solved most of my issues. It's the easiest and best solution if you're on Windows.

https://followfox.ai/tpost/z0oej4ufk1-getting-started-with-comfyui-on-wsl2

You may not need to follow the guide exactly—adapt it based on your environment.

If you have any questions, feel free to reach out, and I'll help!

@melanie0901
Copy link
Author

哟,我的朋友, 我被困了一段时间,但使用 WSL2 解决了我的大部分问题。如果你使用 Windows,这是最简单、最好的解决方案。

https://followfox.ai/tpost/z0oej4ufk1-getting-started-with-comfyui-on-wsl2

您可能不需要完全遵循指南——根据您的环境进行调整。

如果您有任何疑问,请随时联系我,我会提供帮助!

Thank you friend! I will try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants