comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
56.44k stars 5.98k forks source link

An error occurred while trying to execute the workflow:Node Type:** DWPreprocessor #4991

Closed WHY-TANG closed 1 month ago

WHY-TANG commented 1 month ago

Expected Behavior

ComfyUI Error Report

Error Details

Actual Behavior

image

Steps to Reproduce

An error occurred while trying to execute the workflow

Debug Logs

# ComfyUI Error Report
## Error Details
- **Node Type:** DWPreprocessor
- **Exception Type:** AssertionError
- **Exception Message:** 
## Stack Trace

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_controlnet_aux\node_wrappers\dwpose.py", line 73, in estimate_pose
    model = DwposeDetector.from_pretrained(

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_controlnet_aux\src\custom_controlnet_aux\dwpose\__init__.py", line 244, in from_pretrained
    t = Wholebody(None, pose_model_path, torchscript_device=torchscript_device)

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_controlnet_aux\src\custom_controlnet_aux\dwpose\wholebody.py", line 74, in __init__
    self.pose.to(torchscript_device)

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torch\nn\modules\module.py", line 1173, in to
    return self._apply(convert)

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
    module._apply(fn)

  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torch\nn\modules\module.py", line 828, in _apply
    assert isinstance(param, Parameter)

System Information

Logs

2024-09-19 18:57:22,413 - root - INFO - Using directml with device: NVIDIA GeForce GTX 1060 6GB
2024-09-19 18:57:22,420 - root - INFO - Total VRAM 1024 MB, total RAM 32703 MB
2024-09-19 18:57:22,421 - root - INFO - pytorch version: 2.3.1+cu121
2024-09-19 18:57:23,329 - root - INFO - Forcing FP32, if this improves things please report it.
2024-09-19 18:57:23,329 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-19 18:57:23,329 - root - INFO - Device: privateuseone
2024-09-19 18:57:24,762 - root - INFO - Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention
2024-09-19 18:57:26,617 - root - INFO - [Prompt Server] web root: E:\ComfyUI\ComfyUI-aki-by-juzi\web
2024-09-19 18:57:30,988 - root - WARNING - Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\nodes.py", line 1994, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\comfy_extras\nodes_audio.py", line 1, in <module>
    import torchaudio
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torchaudio\__init__.py", line 2, in <module>
    from . import _extension  # noqa  # usort: skip
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torchaudio\_extension\__init__.py", line 38, in <module>
    _load_lib("libtorchaudio")
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torchaudio\_extension\utils.py", line 60, in _load_lib
    torch.ops.load_library(path)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torch\_ops.py", line 1032, in load_library
    ctypes.CDLL(path)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] 找不到指定的程序。

2024-09-19 18:57:30,988 - root - WARNING - Cannot import E:\ComfyUI\ComfyUI-aki-by-juzi\comfy_extras\nodes_audio.py module for custom nodes: [WinError 127] 找不到指定的程序。
2024-09-19 18:57:35,893 - root - WARNING - Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\nodes.py", line 1994, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 879, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1016, in get_code
  File "<frozen importlib._bootstrap_external>", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\ComfyUI\\ComfyUI-aki-by-juzi\\custom_nodes\\ComfyUI-CLIPSeg-main\\__init__.py'

2024-09-19 18:57:35,893 - root - WARNING - Cannot import E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-CLIPSeg-main module for custom nodes: [Errno 2] No such file or directory: 'E:\\ComfyUI\\ComfyUI-aki-by-juzi\\custom_nodes\\ComfyUI-CLIPSeg-main\\__init__.py'
2024-09-19 18:57:49,370 - root - INFO - Using directml with device: NVIDIA GeForce GTX 1060 6GB
2024-09-19 18:57:49,377 - root - INFO - Total VRAM 1024 MB, total RAM 32703 MB
2024-09-19 18:57:49,377 - root - INFO - pytorch version: 2.3.1+cu121
2024-09-19 18:57:49,377 - root - INFO - Forcing FP32, if this improves things please report it.
2024-09-19 18:57:49,377 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-19 18:57:49,377 - root - INFO - Device: privateuseone
2024-09-19 18:57:49,445 - root - WARNING - Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\nodes.py", line 1994, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Impact-Pack-Main\__init__.py", line 75, in <module>
    from .modules.impact.impact_pack import *
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Impact-Pack-Main\modules\impact\impact_pack.py", line 18, in <module>
    from impact.config import MAX_RESOLUTION, latent_letter_path
ImportError: cannot import name 'MAX_RESOLUTION' from 'impact.config' (E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Impact-Pack\modules\impact\config.py)

2024-09-19 18:57:49,445 - root - WARNING - Cannot import E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Impact-Pack-Main module for custom nodes: cannot import name 'MAX_RESOLUTION' from 'impact.config' (E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Impact-Pack\modules\impact\config.py)
2024-09-19 18:57:49,459 - root - WARNING - Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\nodes.py", line 1994, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Inference-Core-Nodes\__init__.py", line 1, in <module>
    from inference_core_nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
ModuleNotFoundError: No module named 'inference_core_nodes'

2024-09-19 18:57:49,459 - root - WARNING - Cannot import E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Inference-Core-Nodes module for custom nodes: No module named 'inference_core_nodes'
2024-09-19 18:57:54,210 - root - INFO - --------------
2024-09-19 18:57:54,220 - root - INFO -  ### Mixlab Nodes: Loaded
2024-09-19 18:57:54,238 - root - INFO - LaMaInpainting.available True
2024-09-19 18:57:57,270 - root - INFO - ClipInterrogator.available True
2024-09-19 18:57:58,379 - root - INFO - PromptGenerate.available True
2024-09-19 18:57:58,379 - root - INFO - ChinesePrompt.available True
2024-09-19 18:58:04,717 - root - INFO - RembgNode_.available True
2024-09-19 18:58:04,717 - root - INFO -  -------------- 
2024-09-19 18:59:03,018 - datasets - INFO - PyTorch version 2.3.1+cu121 available.
2024-09-19 18:59:05,753 - auto_gptq.nn_modules.qlinear.qlinear_cuda - WARNING - CUDA extension not installed.
2024-09-19 18:59:05,757 - auto_gptq.nn_modules.qlinear.qlinear_cuda_old - WARNING - CUDA extension not installed.
2024-09-19 19:01:01,389 - bitsandbytes.cextension - WARNING - The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
2024-09-19 19:01:15,060 - root - INFO - 
Import times for custom nodes:
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_pose_inter
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\sdxl_prompt_styler2
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-SDXL-EmptyLatentImage
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui-portrait-master-zh-cn
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\efficiency-nodes-comfyui
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_IPAdapter_plus
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\sdxl_prompt_styler
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Embedding_Picker
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\FreeU_Advanced
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ControlNet-LLLite-ComfyUI
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-VideoHelperSuite
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\AIGODLIKE-ComfyUI-Translation
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_ADV_CLIP_emb
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\stability-ComfyUI-nodes
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-BRIA_AI-RMBG
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\masquerade-nodes-comfyui
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\cg-use-everywhere
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_TiledKSampler
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Logic
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyLiterals
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_experiments
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\cg-image-picker
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-CLIPSeg-main
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Impact-Pack
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_controlnet_aux
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui-animatediff
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-ELLA
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\websocket_image_save.py
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_InstantID
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\images-grid-comfy-plugin
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Inference-Core-Nodes
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui-inpaint-nodes
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui-various
2024-09-19 19:01:15,061 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-AutomaticCFG
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\Derfuu_ComfyUI_ModdedNodes
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_Mira
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\PowerNoiseSuite
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyMath
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_yanc
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfy-image-saver
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-QualityOfLifeSuit_Omar92
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-IC-Light
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_UltimateSDUpscale
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Advanced-ControlNet
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Custom-Scripts
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-AnimateDiff-Evolved
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-WD14-Tagger
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_essentials
2024-09-19 19:01:15,062 - root - INFO -    0.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\rgthree-comfy
2024-09-19 19:01:15,062 - root - INFO -    0.1 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Impact-Pack-Main
2024-09-19 19:01:15,062 - root - INFO -    0.1 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_bmad_nodes
2024-09-19 19:01:15,062 - root - INFO -    0.1 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\CharacterFaceSwap
2024-09-19 19:01:15,062 - root - INFO -    0.1 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-KJNodes
2024-09-19 19:01:15,062 - root - INFO -    0.1 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-09-19 19:01:15,062 - root - INFO -    0.1 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_smZNodes
2024-09-19 19:01:15,062 - root - INFO -    0.1 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Inspire-Pack
2024-09-19 19:01:15,062 - root - INFO -    0.2 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_tinyterraNodes
2024-09-19 19:01:15,062 - root - INFO -    0.2 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\PuLID_ComfyUI
2024-09-19 19:01:15,062 - root - INFO -    0.2 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\facerestore_cf
2024-09-19 19:01:15,062 - root - INFO -    0.2 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-BrushNet
2024-09-19 19:01:15,062 - root - INFO -    0.2 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_segment_anything
2024-09-19 19:01:15,062 - root - INFO -    0.2 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Text_Image-Composite
2024-09-19 19:01:15,062 - root - INFO -    0.3 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_FaceAnalysis
2024-09-19 19:01:15,062 - root - INFO -    0.4 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Workflow-Component
2024-09-19 19:01:15,062 - root - INFO -    0.5 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Manager
2024-09-19 19:01:15,062 - root - INFO -    0.5 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui-workspace-manager
2024-09-19 19:01:15,062 - root - INFO -    0.6 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfy_mtb
2024-09-19 19:01:15,062 - root - INFO -    0.8 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Marigold
2024-09-19 19:01:15,062 - root - INFO -    0.9 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Gemini
2024-09-19 19:01:15,063 - root - INFO -    0.9 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_LayerStyle
2024-09-19 19:01:15,063 - root - INFO -    0.9 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Easy-Use
2024-09-19 19:01:15,063 - root - INFO -    1.0 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\clipseg.py
2024-09-19 19:01:15,063 - root - INFO -    1.6 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui-reactor-node
2024-09-19 19:01:15,063 - root - INFO -    1.6 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-SUPIR
2024-09-19 19:01:15,063 - root - INFO -    3.4 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui-art-venture
2024-09-19 19:01:15,063 - root - INFO -    3.6 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Dwpose-Tensorrt
2024-09-19 19:01:15,063 - root - INFO -    3.7 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_FizzNodes
2024-09-19 19:01:15,063 - root - INFO -    5.2 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-YoloWorld-EfficientSAM
2024-09-19 19:01:15,063 - root - INFO -    8.1 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI-Crystools
2024-09-19 19:01:15,063 - root - INFO -   10.8 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\was-node-suite-comfyui
2024-09-19 19:01:15,063 - root - INFO -   13.7 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui-mixlab-nodes
2024-09-19 19:01:15,063 - root - INFO -   20.8 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_Bxb
2024-09-19 19:01:15,063 - root - INFO -   23.5 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\ComfyUI_Custom_Nodes_AlekPet
2024-09-19 19:01:15,063 - root - INFO -  118.7 seconds: E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\Comfyui_image2prompt
2024-09-19 19:01:15,063 - root - INFO - 
2024-09-19 19:01:15,063 - root - WARNING - WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.

2024-09-19 19:01:15,063 - root - WARNING - IMPORT FAILED: nodes_audio.py
2024-09-19 19:01:15,063 - root - WARNING - 
This issue might be caused by new missing dependencies added the last time you updated ComfyUI.
2024-09-19 19:01:15,063 - root - WARNING - Please do a: pip install -r requirements.txt
2024-09-19 19:01:15,063 - root - WARNING - 
2024-09-19 19:01:15,274 - root - INFO - 

2024-09-19 19:01:15,274 - root - INFO - 

Starting server
2024-09-19 19:01:15,274 - root - INFO - To see the GUI go to: http://127.0.0.1:8192
2024-09-19 19:01:15,274 - root - INFO - To see the GUI go to: https://127.0.0.1:8193
2024-09-19 19:02:35,778 - aiohttp.server - ERROR - Error handling request
Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
    resp = await request_handler(request)
  File "<enhanced_experience vendors.sentry_sdk.integrations.aiohttp>", line 130, in sentry_app_handle
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_app.py", line 543, in _handle
    resp = await handler(request)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_middlewares.py", line 114, in impl
    return await handler(request)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\server.py", line 63, in cache_control
    response: web.Response = await handler(request)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\server.py", line 141, in origin_only_middleware
    response = await handler(request)
  File "<enhanced_experience patches.comfyui.html_resources_patcher>", line 26, in http_resource_injector
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\server.py", line 75, in cors_middleware
    response = await handler(request)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\server.py", line 188, in websocket_handler
    await ws.prepare(request)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_ws.py", line 152, in prepare
    payload_writer = await super().prepare(request)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_response.py", line 417, in prepare
    return await self._start(request)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_response.py", line 425, in _start
    await self._write_headers()
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_response.py", line 505, in _write_headers
    await writer.write_headers(status_line, self._headers)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\http_writer.py", line 130, in write_headers
    self._write(buf)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\http_writer.py", line 75, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
2024-09-19 19:02:36,150 - asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-57' coro=<RequestHandler.start() done, defined at E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py:481> exception=AssertionError()>
Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py", line 524, in start
    request = self._request_factory(message, payload, self, writer, handler)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_app.py", line 485, in _make_request
    return _cls(
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_request.py", line 828, in __init__
    super().__init__(*args, **kwargs)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_request.py", line 196, in __init__
    assert transport is not None
AssertionError
2024-09-19 19:02:36,165 - asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-62' coro=<RequestHandler.start() done, defined at E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py:481> exception=AssertionError()>
Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py", line 524, in start
    request = self._request_factory(message, payload, self, writer, handler)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_app.py", line 485, in _make_request
    return _cls(
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_request.py", line 828, in __init__
    super().__init__(*args, **kwargs)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_request.py", line 196, in __init__
    assert transport is not None
AssertionError
2024-09-19 19:02:36,165 - asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-81' coro=<RequestHandler.start() done, defined at E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py:481> exception=AssertionError()>
Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py", line 524, in start
    request = self._request_factory(message, payload, self, writer, handler)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_app.py", line 485, in _make_request
    return _cls(
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_request.py", line 828, in __init__
    super().__init__(*args, **kwargs)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_request.py", line 196, in __init__
    assert transport is not None
AssertionError
2024-09-19 19:02:36,165 - asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-52' coro=<RequestHandler.start() done, defined at E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py:481> exception=AssertionError()>
Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_protocol.py", line 524, in start
    request = self._request_factory(message, payload, self, writer, handler)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_app.py", line 485, in _make_request
    return _cls(
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_request.py", line 828, in __init__
    super().__init__(*args, **kwargs)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\aiohttp\web_request.py", line 196, in __init__
    assert transport is not None
AssertionError
2024-09-19 19:04:44,154 - root - INFO - got prompt
2024-09-19 19:04:52,662 - root - INFO - model weight dtype torch.float32, manual cast: None
2024-09-19 19:04:54,229 - root - INFO - model_type EPS
2024-09-19 19:05:55,797 - root - INFO - Using split attention in VAE
2024-09-19 19:05:55,844 - root - INFO - Using split attention in VAE
2024-09-19 19:05:58,658 - root - INFO - Requested to load SDXLClipModel
2024-09-19 19:05:58,658 - root - INFO - Loading 1 new model
2024-09-19 19:05:58,704 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-09-19 19:06:41,103 - root - ERROR - !!! Exception during processing !!! 
2024-09-19 19:06:41,282 - root - ERROR - Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_controlnet_aux\node_wrappers\dwpose.py", line 73, in estimate_pose
    model = DwposeDetector.from_pretrained(
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_controlnet_aux\src\custom_controlnet_aux\dwpose\__init__.py", line 244, in from_pretrained
    t = Wholebody(None, pose_model_path, torchscript_device=torchscript_device)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\custom_nodes\comfyui_controlnet_aux\src\custom_controlnet_aux\dwpose\wholebody.py", line 74, in __init__
    self.pose.to(torchscript_device)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torch\nn\modules\module.py", line 1173, in to
    return self._apply(convert)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
    module._apply(fn)
  File "E:\ComfyUI\ComfyUI-aki-by-juzi\python\lib\site-packages\torch\nn\modules\module.py", line 828, in _apply
    assert isinstance(param, Parameter)
AssertionError

2024-09-19 19:06:41,283 - root - INFO - Prompt executed in 117.06 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.

Additional Context

(Please add any additional context or steps to reproduce the error here)



### Other

Confirmed dw-ll_ucoco_384.onnx file is in the correct folder.
Verified dw-ll_ucoco_384.onnx file integrity (not corrupted).
Reinstalled ComfyUI, nodes, and models.
Installed dependencies (onnx, opencv).
Converted ONNX file to a different opset version.
These steps didn't solve the issue. Any ideas on how to fix it?
ltdrdata commented 1 month ago

This issue should be moved to custom_controlnet_aux repo. https://github.com/Fannovel16/comfyui_controlnet_aux

Niso31 commented 1 month ago

have you found a fix to this? @WHY-TANG

jvpontesalves commented 1 month ago

Consegui resolver o problema verificando o uso do dispositivo torchscript_device

O erro parece ocorrer quando o modelo tenta ser movido para o dispositivo torchscript_device, que provavelmente está configurado incorretamente.

A função to() tenta mover o modelo para a GPU ou CPU. Certifique-se de que o parâmetro torchscript_device seja 'cuda' (para GPU) ou 'cpu' (se não tiver GPU disponível).

Verificação:

Abra o arquivo wholebody.py na linha 74 e verifique como o dispositivo está sendo definido. Ele deve estar recebendo um valor válido como 'cpu' ou 'cuda'.

Exemplo de uma linha correta:

self.pose.to('cuda' if torch.cuda.is_available() else 'cpu')