StartHua / ComfyUI_OOTDiffusion_CXH

OOTDiffusion
Apache License 2.0
111 stars 13 forks source link

ComfyUI_OOTDiffusion_CXH module for custom nodes: DLL load failed while importing inplace_abn #8

Open kakachiex2 opened 7 months ago

kakachiex2 commented 7 months ago

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

kakachiex2 commented 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 "", line 940, in exec_module File "", line 241, in _call_with_frames_removed 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 7, in from .ootd.inference_ootd_hd import OOTDiffusionHD File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\ootd\inference_ootd_hd.py", line 16, in from pipelines_ootd.pipeline_ootd import OotdPipeline File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\ootd\pipelines_ootd\pipeline_ootd.py", line 27, in from .unet_vton_2d_condition import UNetVton2DConditionModel File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\ootd\pipelines_ootd\unet_vton_2d_condition.py", line 23, in from .unet_vton_2d_blocks import ( File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\ootd\pipelines_ootd\unet_vton_2d_blocks.py", line 23, in from .transformer_vton_2d import Transformer2DModel File "C:\ComfyUI_Cloth\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\ootd\pipelines_ootd\transformer_vton_2d.py", line 29, in from diffusers.models.embeddings import CaptionProjection, PatchEmbed ImportError: cannot import name 'CaptionProjection' from 'diffusers.models.embeddings' (C:\ComfyUI_Cloth\python_miniconda_env\ComfyUI\Lib\site-packages\diffusers\models\embeddings.py)

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

cnbodgie commented 6 months ago

how to fix inplace_abn?

shisheng660 commented 6 months ago

File "E:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_OOTDiffusion_CXH\ootd\pipelines_ootd\transformer_vton_2d.py", line 29, in from diffusers.models.embeddings import CaptionProjection, PatchEmbed ImportError: cannot import name 'CaptionProjection' from 'diffusers.models.embeddings' (E:\ComfyUI-aki-v1.1\python\lib\site-packages\diffusers\models\embeddings.py)

Same error Did you solve it?

qizai12331 commented 6 months ago

安装新的 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

kakachiex2 commented 6 months ago

I don't remember what I did exactly but I solve it do this :