cozymantis / human-parser-comfyui-node

A ComfyUI node to automatically extract masks for body regions and clothing/fashion items. Made with 💚 by the CozyMantis squad.
https://cozymantis.gumroad.com
GNU General Public License v3.0
59 stars 4 forks source link

Fails to import node #15

Open MrSmith44 opened 1 month ago

MrSmith44 commented 1 month ago

File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 2100, in _run_ninja_build subprocess.run( File "subprocess.py", line 571, in run subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1879, 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 "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node__init__.py", line 1, in from .HumanParserLIPCustomNode import HumanParserLIPCustomNode File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\HumanParserLIPCustomNode.py", line 5, in from .utils import generate File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\utils.py", line 8, in from .schp import networks File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\networks__init.py", line 3, in from .AugmentCE2P import resnet101 File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\networks\AugmentCE2P.py", line 21, in from ..modules import InPlaceABNSync File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\init__.py", line 1, in from .bn import ABN, InPlaceABN, InPlaceABNSync File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\bn.py", line 10, in from .functions import * File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\functions.py", line 12, in _backend = load(name="inplace_abn", ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1308, in load return _jit_compile( ^^^^^^^^^^^^^ File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1710, in _jit_compile _write_ninja_file_and_build_library( File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 1823, in _write_ninja_file_and_build_library _run_ninja_build( File "C:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\cpp_extension.py", line 2116, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error building extension 'inplace_abn': [1/2] cl /showIncludes -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include" -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc /std:c++17 -O3 -c C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\src\inplace_abn.cpp /Foinplace_abn.o FAILED: inplace_abn.o cl /showIncludes -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include" -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc /std:c++17 -O3 -c C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\src\inplace_abn.cpp /Foinplace_abn.o Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64 Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-O3' C:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\torch/csrc/python_headers.h(12): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory ninja: build stopped: subcommand failed.

Cannot import C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node module for custom nodes: Error building extension 'inplace_abn': [1/2] cl /showIncludes -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include" -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc /std:c++17 -O3 -c C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\src\inplace_abn.cpp /Foinplace_abn.o FAILED: inplace_abn.o cl /showIncludes -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\TH -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include" -IC:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc /std:c++17 -O3 -c C:\Users\Smith\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\human-parser-comfyui-node\schp\modules\src\inplace_abn.cpp /Foinplace_abn.o Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64 Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-O3' C:\Users\Smith\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\include\torch/csrc/python_headers.h(12): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory ninja: build stopped: subcommand failed.

Hituh commented 4 hours ago

Hi there, did you figure anything about this issue? Been stuck on it for hours.

MrSmith44 commented 4 hours ago

I’ve avoided this node and the headache for weeks mate I might have another look tonight and see if I can make any sense of it if I work anything out I’ll let you know 👍🏽

On Wed, 24 Jul 2024 at 6:23 pm, Hituh @.***> wrote:

Hi there, did you figure anything about this issue? Been stuck on it for hours.

— Reply to this email directly, view it on GitHub https://github.com/cozymantis/human-parser-comfyui-node/issues/15#issuecomment-2247204632, or unsubscribe https://github.com/notifications/unsubscribe-auth/BERH74A6752TG5I36XZ25EDZN5QAXAVCNFSM6AAAAABJDOMA6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBXGIYDINRTGI . You are receiving this because you authored the thread.Message ID: @.***>