Open kakachiex2 opened 7 months ago
Fixed by compiling inplace_abn but know throw a new error.
File "C:\ComfyUI_Cloth\ComfyUI\nodes.py", line 1887, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH module for custom nodes: cannot import name 'CaptionProjection' from 'diffusers.models.embeddings' (C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\Lib\site-packages\diffusers\models\embeddings.py)
C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\Lib\site-packages\transformers\models\segformer\image_processing_segformer.py:102: FutureWarning: The reduce_labels
parameter is deprecated and will be removed in a future version. Please use do_reduce_labels
instead.
warnings.warn(
[tinyterraNodes] Loaded
Import times for custom nodes: 0.0 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\cg-use-everywhere 0.1 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_tinyterraNodes 0.5 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI-KJNodes 1.3 seconds (IMPORT FAILED): C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH 1.3 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_Seg_VITON 3.1 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI-Crystools
Starting server
how to fix inplace_abn?
File "E:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_OOTDiffusion_CXH\ootd\pipelines_ootd\transformer_vton_2d.py", line 29, in
Same error Did you solve it?
安装新的 ComfyUI 后,我收到了这条漂亮的错误消息。
文件“C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusionCXH init _.py”,第 1 行, 来自 .OodGenerater import Ood_CXH 文件“C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\OodGenerater.py”,第 6 行, 来自.preprocess. humanparsing.aigc_run_parsing 导入解析 文件“C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\preprocess\ humanparsing\aigc_run_parsing.py”,第 7 行,来自 .parsing_api 导入 load_atr_model,load_lip_model,推理 文件“C:\ComfyUI_Cloth\ ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\preprocess\ humanparsing\parsing_api.py”,第 11 行,来自 .导入网络 文件“C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusionCXH\preprocess\ humanparsing\networks init _.py”,第 2 行,来自 网络。AugmentCE2P 导入 resnet101 文件“C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusionCXH\preprocess \ humanparsing \networks init _.py“,第2行,来自 networks.AugmentCE2P导入resnet101 文件“C:\ ComfyUI_Cloth \ ComfyUI \ custom_nodes \ ComfyUI_OOTDiffusion_CXH \ preprocess \ humanparsing \networks \ AugmentCE2P.py”,第22行,来自 modules_导入 InPlaceABNSync 文件“C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\preprocess\ humanparsing\modules__ init _.py”,第 1 行,来自 .bn 导入 ABN、InPlaceABN、InPlaceABNSync 文件“C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ ComfyUI_OOTDiffusionCXH\preprocess\ humanparsing\modules\bn.py”,第 10 行,来自 .functions import * 文件“C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusionCXH\preprocess\ humanparsing\modules\functions.py”,第 11 行,在 _backend = load(name="inplace_abn", ^^^^^^^^^^^^^^^^^^^^^^^^^ 文件“C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\Lib\site-packages \torch\utils\cpp_extension.py",第 1308 行,加载中 return _jit_compile( ^^^^^^^^^^^^^^ File "C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\Lib\site-packages\torch\ utils\cpp_extension.py”,第 1736 行,在 _jit_compile 中 返回 _import_module_from_library(name, build_directory, is_python_module) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 文件“C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\ Lib\site-packages\torch\utils\cpp_extension.py”,第 2136 行,在 _import_module_from_library 模块 = importlib.util.module_from_spec(spec) ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ImportError: 导入 inplace_abn 时 DLL 加载失败:找不到指定的模块。
无法为自定义节点导入 C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH 模块:导入 inplace_abn 时 DLL 加载失败:找不到指定的模块。 [tinyterraNodes] 已加载
自定义节点的导入时间: 0.0 秒:C:\ComfyUI_Cloth\ComfyUI\custom_nodes\cg-use-everywhere 0.1 秒:C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_tinyterraNodes 0.6 秒:C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI- KJNodes 1.4 秒(导入失败):C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH 3.0 秒:C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI-Crystools
Has it been resolved yet? I also encountered the same problem
I don't remember what I did exactly but I solve it do this :
Add your environment folder and Scripts folder to your system path
Copy python libs to your Scripts folder in your venv folder > C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\Scripts "this is in my case" you can find the libs in your python system install.
install cuda toolkit in your venv folder > activate the enviroment > install the cuda version that match your pytorch installation this will help compiling library's. Here is a link to cuda installation:: https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html
Install ninja :: | pip install ninja | All this process installation is in your environment folder " venv folder" active. After this : pip install inplace-abn Hope this help good luck.
I got this beautifull error message after install a new ComfyUI install fresh.
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH__init__.py", line 1, in
from .OodGenerater import Ood_CXH
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\OodGenerater.py", line 6, in
from .preprocess.humanparsing.aigc_run_parsing import Parsing
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\preprocess\humanparsing\aigc_run_parsing.py", line 7, in
from .parsing_api import load_atr_model, load_lip_model, inference
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\preprocess\humanparsing\parsing_api.py", line 11, in
from . import networks
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\preprocess\humanparsing\networks__init.py", line 2, in
from networks.AugmentCE2P import resnet101
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\preprocess\humanparsing\networks\ init.py", line 2, in
from networks.AugmentCE2P import resnet101
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusionCXH\preprocess\humanparsing\networks\AugmentCE2P.py", line 22, in
from modules import InPlaceABNSync
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusionCXH\preprocess\humanparsing\modules\ init__.py", line 1, in
from .bn import ABN, InPlaceABN, InPlaceABNSync
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusionCXH\preprocess\humanparsing\modules\bn.py", line 10, in
from .functions import *
File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusionCXH\preprocess\humanparsing\modules\functions.py", line 11, in
_backend = load(name="inplace_abn",
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\Lib\site-packages\torch\utils\cpp_extension.py", line 1308, in load
return _jit_compile(
^^^^^^^^^^^^^
File "C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\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 "C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\Lib\site-packages\torch\utils\cpp_extension.py", line 2136, in _import_module_from_library
module = importlib.util.module_from_spec(spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing inplace_abn: The specified module could not be found.
Cannot import C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH module for custom nodes: DLL load failed while importing inplace_abn: The specified module could not be found. [tinyterraNodes] Loaded
Import times for custom nodes: 0.0 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\cg-use-everywhere 0.1 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_tinyterraNodes 0.6 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI-KJNodes 1.4 seconds (IMPORT FAILED): C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH 3.0 seconds: C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI-Crystools