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.23k stars 5.96k forks source link

cuda path error #5013

Closed kamahn closed 1 month ago

kamahn commented 1 month ago

Expected Behavior

ㅂㅈㄷ

Actual Behavior

D:\a_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:636 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.

Steps to Reproduce

After installing according to the guide, I loaded the sample workflow and three images, but an error occurs at the 'Image Remove Background (rembg)' step during the process.

Debug Logs

# ComfyUI Error Report
## Error Details
- **Node Type:** Image Remove Background (rembg)
- **Exception Type:** RuntimeError
- **Exception Message:** D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:636 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.

## Stack Trace

  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\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 "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\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 "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\rembg-comfyui-node-better\__init__.py", line 37, in remove_background
    session = new_session(model_name)

  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\rembg\session_factory.py", line 44, in new_session
    return session_class(model_name, sess_opts, providers, *args, **kwargs)

  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\rembg\sessions\base.py", line 34, in __init__
    self.inner_session = ort.InferenceSession(

  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 394, in __init__
    raise fallback_error from e

  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 389, in __init__
    self._create_inference_session(self._fallback_providers, None)

  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 435, in _create_inference_session
    sess.initialize_session(providers, provider_options, disabled_optimizers)

System Information

Logs

2024-09-22 03:04:25,112 - root - INFO - Total VRAM 24564 MB, total RAM 31905 MB
2024-09-22 03:04:25,113 - root - INFO - pytorch version: 2.1.2+cu121
2024-09-22 03:04:25,113 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-22 03:04:25,113 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
2024-09-22 03:04:25,665 - root - INFO - Using pytorch cross attention
2024-09-22 03:04:26,164 - root - INFO - [Prompt Server] web root: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\web
2024-09-22 03:04:27,833 - root - WARNING - Traceback (most recent call last):
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\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 "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-IDM-VTON\__init__.py", line 2, in <module>
    from .src.nodes_mappings import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-IDM-VTON\src\nodes_mappings.py", line 1, in <module>
    from .nodes.pipeline_loader import PipelineLoader
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-IDM-VTON\src\nodes\pipeline_loader.py", line 9, in <module>
    from ..idm_vton.unet_hacked_tryon import UNet2DConditionModel
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-IDM-VTON\src\idm_vton\unet_hacked_tryon.py", line 50, in <module>
    from .unet_block_hacked_tryon import (
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-IDM-VTON\src\idm_vton\unet_block_hacked_tryon.py", line 25, in <module>
    from diffusers.models.dual_transformer_2d import DualTransformer2DModel
ModuleNotFoundError: No module named 'diffusers.models.dual_transformer_2d'

2024-09-22 03:04:27,833 - root - WARNING - Cannot import C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-IDM-VTON module for custom nodes: No module named 'diffusers.models.dual_transformer_2d'
2024-09-22 03:04:28,253 - root - INFO - Total VRAM 24564 MB, total RAM 31905 MB
2024-09-22 03:04:28,253 - root - INFO - pytorch version: 2.1.2+cu121
2024-09-22 03:04:28,253 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-22 03:04:28,253 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
2024-09-22 03:04:28,938 - root - INFO - --------------
2024-09-22 03:04:28,939 - root - INFO -  ### Mixlab Nodes: Loaded
2024-09-22 03:04:28,939 - root - INFO - ChatGPT.available True
2024-09-22 03:04:28,939 - root - INFO - edit_mask.available True
2024-09-22 03:04:29,334 - root - INFO - ClipInterrogator.available True
2024-09-22 03:04:29,423 - root - INFO - PromptGenerate.available True
2024-09-22 03:04:29,423 - root - INFO - ChinesePrompt.available True
2024-09-22 03:04:29,423 - root - INFO - RembgNode_.available True
2024-09-22 03:04:29,657 - root - INFO - TripoSR.available
2024-09-22 03:04:29,658 - root - INFO - MiniCPMNode.available
2024-09-22 03:04:29,722 - root - INFO - Scenedetect.available
2024-09-22 03:04:29,732 - root - INFO - FishSpeech.available False
2024-09-22 03:04:29,732 - root - INFO -  -------------- 
2024-09-22 03:04:30,094 - py.warnings - WARNING - C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\albumentations\__init__.py:13: UserWarning: A new version of Albumentations is available: 1.4.15 (you have 1.4.14). Upgrade using: pip install -U albumentations. To disable automatic update checks, set the environment variable NO_ALBUMENTATIONS_UPDATE to 1.
  check_for_updates()

2024-09-22 03:04:30,151 - py.warnings - WARNING - C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torchvision\transforms\functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
  warnings.warn(

2024-09-22 03:04:30,647 - OpenGL.acceleratesupport - INFO - No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2024-09-22 03:04:31,300 - root - WARNING - Traceback (most recent call last):
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\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 "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\IDM-VTON\__init__.py", line 1, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\IDM-VTON\nodes.py", line 11, in <module>
    from module.idm_vton import start_tryon, create_pipeline
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\IDM-VTON\module\idm_vton.py", line 5, in <module>
    from src.unet_hacked_garmnet import UNet2DConditionModel as UNet2DConditionModel_ref
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\IDM-VTON\src\unet_hacked_garmnet.py", line 35, in <module>
    from diffusers.models.embeddings import (
ImportError: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\diffusers\models\embeddings.py)

2024-09-22 03:04:31,300 - root - WARNING - Cannot import C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\IDM-VTON module for custom nodes: cannot import name 'PositionNet' from 'diffusers.models.embeddings' (C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\diffusers\models\embeddings.py)
2024-09-22 03:04:32,316 - root - INFO - 
Import times for custom nodes:
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\rembg-comfyui-node-better
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\rembg-comfyui-node
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\websocket_image_save.py
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\cg-use-everywhere
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui_segment_anything
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-enricos-nodes
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_CatVTON_Wrapper
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_essentials
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds (IMPORT FAILED): C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-IDM-VTON
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds (IMPORT FAILED): C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\IDM-VTON
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\x-flux-comfyui
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-GGUF
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\efficiency-nodes-comfyui
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfy_PoP
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\rgthree-comfy
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-KJNodes
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui_controlnet_aux
2024-09-22 03:04:32,316 - root - INFO -    0.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack
2024-09-22 03:04:32,316 - root - INFO -    0.1 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
2024-09-22 03:04:32,316 - root - INFO -    0.1 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_LayerStyle
2024-09-22 03:04:32,316 - root - INFO -    0.1 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-SAM2
2024-09-22 03:04:32,316 - root - INFO -    0.1 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-CogVideoXWrapper
2024-09-22 03:04:32,316 - root - INFO -    0.1 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-LumaAI-API
2024-09-22 03:04:32,316 - root - INFO -    0.2 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Crystools
2024-09-22 03:04:32,316 - root - INFO -    0.2 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-SUPIR
2024-09-22 03:04:32,316 - root - INFO -    0.3 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_Fill-Nodes
2024-09-22 03:04:32,316 - root - INFO -    0.3 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_Searge_LLM
2024-09-22 03:04:32,316 - root - INFO -    0.3 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Manager
2024-09-22 03:04:32,316 - root - INFO -    0.4 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
2024-09-22 03:04:32,316 - root - INFO -    0.4 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-reactor-node
2024-09-22 03:04:32,316 - root - INFO -    0.6 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\batchImg-rembg-ComfyUI-nodes
2024-09-22 03:04:32,317 - root - INFO -    1.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-mixlab-nodes
2024-09-22 03:04:32,317 - root - INFO -    1.0 seconds: C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\was-node-suite-comfyui
2024-09-22 03:04:32,317 - root - INFO - 
2024-09-22 03:04:32,327 - root - INFO - 

2024-09-22 03:04:32,327 - root - INFO - 

Starting server
2024-09-22 03:04:32,327 - root - INFO - To see the GUI go to: http://192.168.219.102:8188 or http://127.0.0.1:8188
2024-09-22 03:04:32,327 - root - INFO - To see the GUI go to: https://192.168.219.102:8189 or https://127.0.0.1:8189
2024-09-22 03:05:33,136 - root - INFO - got prompt
2024-09-22 03:05:33,328 - root - INFO - model weight dtype torch.float16, manual cast: None
2024-09-22 03:05:33,330 - root - INFO - model_type EPS
2024-09-22 03:05:36,193 - root - INFO - Using pytorch attention in VAE
2024-09-22 03:05:36,194 - root - INFO - Using pytorch attention in VAE
2024-09-22 03:05:36,757 - root - INFO - loaded straight to GPU
2024-09-22 03:05:36,758 - root - INFO - Requested to load BaseModel
2024-09-22 03:05:36,758 - root - INFO - Loading 1 new model
2024-09-22 03:05:36,766 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-09-22 03:05:37,373 - root - ERROR - !!! Exception during processing !!! D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:636 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.

2024-09-22 03:05:37,374 - root - ERROR - Traceback (most recent call last):
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in __init__
    self._create_inference_session(providers, provider_options, disabled_optimizers)
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 435, in _create_inference_session
    sess.initialize_session(providers, provider_options, disabled_optimizers)
RuntimeError: D:\a\_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1131 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_tensorrt.dll"

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

Traceback (most recent call last):
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\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 "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\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 "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\rembg-comfyui-node-better\__init__.py", line 37, in remove_background
    session = new_session(model_name)
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\rembg\session_factory.py", line 44, in new_session
    return session_class(model_name, sess_opts, providers, *args, **kwargs)
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\rembg\sessions\base.py", line 34, in __init__
    self.inner_session = ort.InferenceSession(
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 394, in __init__
    raise fallback_error from e
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 389, in __init__
    self._create_inference_session(self._fallback_providers, None)
  File "C:\AI\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 435, in _create_inference_session
    sess.initialize_session(providers, provider_options, disabled_optimizers)
RuntimeError: D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:636 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.

2024-09-22 03:05:37,375 - root - INFO - Prompt executed in 4.21 seconds

Attached Workflow

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

{"last_node_id":352,"last_link_id":823,"nodes":[{"id":351,"type":"Image Remove Background (rembg)","pos":{"0":-50,"1":-450},"size":{"0":260.3999938964844,"1":58},"flags":{},"order":7,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":819}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[820],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"Image Remove Background (rembg)"},"widgets_values":["u2net"]},{"id":122,"type":"CLIPTextEncode","pos":{"0":700,"1":-1200},"size":{"0":422.84503173828125,"1":164.31304931640625},"flags":{},"order":10,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":224}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[410],"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["cinematic photograph of a viking warrior in a forest and a black wolf AND color grading and film grain AND cinematic AND 4K AND HDR"],"color":"#232","bgcolor":"#353"},{"id":345,"type":"CompositorConfig3","pos":{"0":300,"1":-800},"size":{"0":315,"1":502},"flags":{},"order":12,"mode":0,"inputs":[{"name":"image1","type":"IMAGE","link":821},{"name":"mask1","type":"MASK","link":null},{"name":"image2","type":"IMAGE","link":820},{"name":"mask2","type":"MASK","link":null},{"name":"image3","type":"IMAGE","link":818},{"name":"mask3","type":"MASK","link":null},{"name":"image4","type":"IMAGE","link":null},{"name":"mask4","type":"MASK","link":null},{"name":"image5","type":"IMAGE","link":null},{"name":"mask5","type":"MASK","link":null},{"name":"image6","type":"IMAGE","link":null},{"name":"mask6","type":"MASK","link":null},{"name":"image7","type":"IMAGE","link":null},{"name":"mask7","type":"MASK","link":null},{"name":"image8","type":"IMAGE","link":null},{"name":"mask8","type":"MASK","link":null}],"outputs":[{"name":"config","type":"COMPOSITOR_CONFIG","links":[805],"shape":3}],"properties":{"Node name for S&R":"CompositorConfig3"},"widgets_values":[1280,768,110,true,false,false,1726941885226]},{"id":286,"type":"EmptyImage","pos":{"0":300,"1":-1050},"size":{"0":315,"1":130},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"EmptyImage"},"widgets_values":[512,512,1,1680]},{"id":123,"type":"CLIPTextEncode","pos":{"0":1150,"1":-1200},"size":{"0":417.5032653808594,"1":154.69677734375},"flags":{"collapsed":false},"order":11,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":225}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[411],"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["lifeless, horror, painting, cgi, illustration, low_quality, blurry, vampire, unrealistic, drawing,  text, watermark, bad_quality"],"color":"#322","bgcolor":"#533"},{"id":298,"type":"ImageScale","pos":{"0":1600,"1":-1200},"size":{"0":315,"1":130},"flags":{},"order":15,"mode":4,"inputs":[{"name":"image","type":"IMAGE","link":803}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[672,673],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"ImageScale"},"widgets_values":["nearest-exact",1024,1536,"disabled"]},{"id":198,"type":"PreviewImage","pos":{"0":1950,"1":-1200},"size":{"0":210,"1":246},"flags":{},"order":19,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":426}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"}},{"id":126,"type":"VAEEncode","pos":{"0":2200,"1":-1200},"size":{"0":210,"1":46},"flags":{},"order":17,"mode":0,"inputs":[{"name":"pixels","type":"IMAGE","link":673},{"name":"vae","type":"VAE","link":230}],"outputs":[{"name":"LATENT","type":"LATENT","links":[231],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"VAEEncode"}},{"id":124,"type":"VAEDecode","pos":{"0":2200,"1":-1100},"size":{"0":140,"1":46},"flags":{},"order":21,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":226},{"name":"vae","type":"VAE","link":227}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[670],"slot_index":0}],"properties":{"Node name for S&R":"VAEDecode"}},{"id":193,"type":"ControlNetApplyAdvanced","pos":{"0":2250,"1":-450},"size":{"0":260.3999938964844,"1":166},"flags":{},"order":18,"mode":0,"inputs":[{"name":"positive","type":"CONDITIONING","link":410},{"name":"negative","type":"CONDITIONING","link":411},{"name":"control_net","type":"CONTROL_NET","link":423},{"name":"image","type":"IMAGE","link":425}],"outputs":[{"name":"positive","type":"CONDITIONING","links":[413],"slot_index":0,"shape":3},{"name":"negative","type":"CONDITIONING","links":[414],"slot_index":1,"shape":3}],"properties":{"Node name for S&R":"ControlNetApplyAdvanced"},"widgets_values":[0.4,0,0.9]},{"id":344,"type":"Compositor3","pos":{"0":700,"1":-800},"size":{"0":1521,"1":1079},"flags":{},"order":13,"mode":0,"inputs":[{"name":"config","type":"COMPOSITOR_CONFIG","link":805},{"name":"tools","type":"BOOLEAN","link":807,"widget":{"name":"tools"}}],"outputs":[{"name":"transforms","type":"STRING","links":[806],"shape":3},{"name":"image","type":"IMAGE","links":[803],"shape":3}],"properties":{"Node name for S&R":"Compositor3"},"widgets_values":["{\"width\":1280,\"height\":768,\"padding\":110,\"transforms\":[{\"left\":67.29333589365456,\"top\":117.9468021136131,\"scaleX\":0.9909220644610665,\"scaleY\":0.9909220644610665,\"angle\":0,\"flipX\":false,\"flipY\":false,\"originX\":\"left\",\"originY\":\"top\",\"xwidth\":1365,\"xheight\":768,\"skewY\":0,\"skewX\":0},{\"left\":246.16651289095125,\"top\":152.3262279478957,\"scaleX\":0.9039852323783351,\"scaleY\":0.9039852323783351,\"angle\":0,\"flipX\":false,\"flipY\":false,\"originX\":\"left\",\"originY\":\"top\",\"xwidth\":576,\"xheight\":768,\"skewY\":0,\"skewX\":0},{\"left\":667.8645917323958,\"top\":442.16978259209634,\"scaleX\":0.6638480948156427,\"scaleY\":0.6270438236132133,\"angle\":0,\"flipX\":true,\"flipY\":false,\"originX\":\"left\",\"originY\":\"top\",\"xwidth\":1152,\"xheight\":768,\"skewY\":0,\"skewX\":0},{\"left\":0,\"top\":0,\"scaleX\":1,\"scaleY\":1,\"angle\":0,\"flipX\":false,\"flipY\":false,\"originX\":\"left\",\"originY\":\"top\",\"xwidth\":0,\"xheight\":0,\"skewY\":0,\"skewX\":0},{\"left\":0,\"top\":0,\"scaleX\":1,\"scaleY\":1,\"angle\":0,\"flipX\":false,\"flipY\":false,\"originX\":\"left\",\"originY\":\"top\",\"xwidth\":0,\"xheight\":0,\"skewY\":0,\"skewX\":0},{\"left\":0,\"top\":0,\"scaleX\":1,\"scaleY\":1,\"angle\":0,\"flipX\":false,\"flipY\":false,\"originX\":\"left\",\"originY\":\"top\",\"xwidth\":0,\"xheight\":0,\"skewY\":0,\"skewX\":0},{\"left\":0,\"top\":0,\"scaleX\":1,\"scaleY\":1,\"angle\":0,\"flipX\":false,\"flipY\":false,\"originX\":\"left\",\"originY\":\"top\",\"xwidth\":0,\"xheight\":0,\"skewY\":0,\"skewX\":0},{\"left\":0,\"top\":0,\"scaleX\":1,\"scaleY\":1,\"angle\":0,\"flipX\":false,\"flipY\":false,\"originX\":\"left\",\"originY\":\"top\",\"xwidth\":0,\"xheight\":0,\"skewY\":0,\"skewX\":0}],\"bboxes\":[{\"left\":67.29333589365456,\"top\":117.9468021136131,\"xwidth\":761.028145506099,\"xheight\":1352.6086179893557},{\"left\":246.16651289095125,\"top\":152.3262279478957,\"xwidth\":694.2606584665614,\"xheight\":520.695493849921},{\"left\":667.8645917323958,\"top\":442.16978259209634,\"xwidth\":481.56965653494785,\"xheight\":764.7530052276205},{\"left\":0,\"top\":0,\"xwidth\":0,\"xheight\":0},{\"left\":0,\"top\":0,\"xwidth\":0,\"xheight\":0},{\"left\":0,\"top\":0,\"xwidth\":0,\"xheight\":0},{\"left\":0,\"top\":0,\"xwidth\":0,\"xheight\":0},{\"left\":0,\"top\":0,\"xwidth\":0,\"xheight\":0}]}","compositor/1726856927860.png [temp]",true,null,"continue"]},{"id":347,"type":"CompositorTools3","pos":{"0":300,"1":-250},"size":{"0":310.79998779296875,"1":106},"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"tools","type":"BOOLEAN","links":[807],"shape":3}],"properties":{"Node name for S&R":"CompositorTools3"}},{"id":349,"type":"Image Remove Background (rembg)","pos":{"0":-50,"1":50},"size":{"0":260.3999938964844,"1":58},"flags":{},"order":8,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":816}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[818],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"Image Remove Background (rembg)"},"widgets_values":["u2net"]},{"id":119,"type":"KSampler","pos":{"0":2250,"1":-800},"size":{"0":256.9302062988281,"1":262},"flags":{},"order":20,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":823},{"name":"positive","type":"CONDITIONING","link":413},{"name":"negative","type":"CONDITIONING","link":414},{"name":"latent_image","type":"LATENT","link":231}],"outputs":[{"name":"LATENT","type":"LATENT","links":[226],"slot_index":0}],"properties":{"Node name for S&R":"KSampler"},"widgets_values":[977862159117587,"fixed",35,4,"deis","beta",1]},{"id":352,"type":"PerturbedAttentionGuidance","pos":{"0":2250,"1":-200},"size":{"0":218.39999389648438,"1":58},"flags":{},"order":9,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":822}],"outputs":[{"name":"MODEL","type":"MODEL","links":[823],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"PerturbedAttentionGuidance"},"widgets_values":[3]},{"id":297,"type":"PreviewImage","pos":{"0":2550,"1":-700},"size":{"0":927.4722290039062,"1":825.2888793945312},"flags":{},"order":22,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":670}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"}},{"id":346,"type":"CompositorTransformsOutV3","pos":{"0":2550,"1":-1200},"size":{"0":453.5999755859375,"1":266},"flags":{},"order":14,"mode":0,"inputs":[{"name":"transforms","type":"STRING","link":806,"widget":{"name":"transforms"}}],"outputs":[{"name":"x","type":"INT","links":null,"shape":3},{"name":"y","type":"INT","links":null,"shape":3},{"name":"width","type":"INT","links":null,"shape":3},{"name":"height","type":"INT","links":null,"shape":3},{"name":"angle","type":"INT","links":null,"shape":3},{"name":"bbox x","type":"INT","links":null,"shape":3},{"name":"bbox y","type":"INT","links":null,"shape":3},{"name":"bbox width","type":"INT","links":null,"shape":3},{"name":"bbox height","type":"INT","links":null,"shape":3}],"properties":{"Node name for S&R":"CompositorTransformsOutV3"},"widgets_values":["",1,true]},{"id":350,"type":"LoadImage","pos":{"0":-50,"1":-1200},"size":{"0":315,"1":314},"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[821],"slot_index":0,"shape":3},{"name":"MASK","type":"MASK","links":null,"shape":3}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["1855-curated outdoor photo stimulating curvy-flux1DevV1V2Flux1_flux1DevBNBNF4V2-960798440.png","image"]},{"id":254,"type":"LoadImage","pos":{"0":-50,"1":-850},"size":{"0":315,"1":314},"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[819],"slot_index":0,"shape":3},{"name":"MASK","type":"MASK","links":null,"shape":3}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["bba55990c596f.jpg","image"]},{"id":304,"type":"LoadImage","pos":{"0":-50,"1":-350},"size":{"0":315,"1":314},"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[816],"slot_index":0,"shape":3},{"name":"MASK","type":"MASK","links":[],"slot_index":1,"shape":3}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["demo1.jpg","image"]},{"id":194,"type":"ControlNetLoader","pos":{"0":1150,"1":-950},"size":{"0":459.9102783203125,"1":58},"flags":{},"order":5,"mode":0,"inputs":[],"outputs":[{"name":"CONTROL_NET","type":"CONTROL_NET","links":[423],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"ControlNetLoader"},"widgets_values":["ControlNet\\SD15\\control_v11f1p_sd15_depth_fp16.safetensors"]},{"id":197,"type":"AIO_Preprocessor","pos":{"0":700,"1":-950},"size":{"0":428.31402587890625,"1":82},"flags":{},"order":16,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":672}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[425,426],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"AIO_Preprocessor"},"widgets_values":["DepthAnythingV2Preprocessor",512]},{"id":120,"type":"CheckpointLoaderSimple","pos":{"0":300,"1":-1200},"size":{"0":315,"1":98},"flags":{},"order":6,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[822],"slot_index":0},{"name":"CLIP","type":"CLIP","links":[224,225],"slot_index":1},{"name":"VAE","type":"VAE","links":[227,230],"slot_index":2}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["SD15\\REAL\\amIReal_V4.safetensors"]}],"links":[[224,120,1,122,0,"CLIP"],[225,120,1,123,0,"CLIP"],[226,119,0,124,0,"LATENT"],[227,120,2,124,1,"VAE"],[230,120,2,126,1,"VAE"],[231,126,0,119,3,"LATENT"],[410,122,0,193,0,"CONDITIONING"],[411,123,0,193,1,"CONDITIONING"],[413,193,0,119,1,"CONDITIONING"],[414,193,1,119,2,"CONDITIONING"],[423,194,0,193,2,"CONTROL_NET"],[425,197,0,193,3,"IMAGE"],[426,197,0,198,0,"IMAGE"],[670,124,0,297,0,"IMAGE"],[672,298,0,197,0,"IMAGE"],[673,298,0,126,0,"IMAGE"],[803,344,1,298,0,"IMAGE"],[805,345,0,344,0,"COMPOSITOR_CONFIG"],[806,344,0,346,0,"STRING"],[807,347,0,344,1,"BOOLEAN"],[816,304,0,349,0,"IMAGE"],[818,349,0,345,4,"IMAGE"],[819,254,0,351,0,"IMAGE"],[820,351,0,345,2,"IMAGE"],[821,350,0,345,0,"IMAGE"],[822,120,0,352,0,"MODEL"],[823,352,0,119,0,"MODEL"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.7247295000000004,"offset":[326.0391800357285,1406.0040752952566]},"groupNodes":{}},"version":0.4}

Additional Context

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



### Other

_No response_
ltdrdata commented 1 month ago

This issue should be moved to rembg-comfyui-node-better repo. https://github.com/Loewen-Hob/rembg-comfyui-node-better/issues

And, as mentioned in the message, it is recommended to first try installing the onnxruntime package version that is compatible with your torch version. https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements

kamahn commented 1 month ago

This issue should be moved to rembg-comfyui-node-better repo.

https://github.com/Loewen-Hob/rembg-comfyui-node-better/issues

And, as mentioned in the message, it is recommended to first try installing the onnxruntime package version that is compatible with your torch version.

https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements

Thank you for your response, and I sincerely apologize. It seems the issue arose due to my mistake. When I completely reinstalled ComfyUI and proceeded, no problems occurred at all. I believe the issue may have been caused by installing too many custom nodes. Once again, thank you very much for your help, and I'm truly sorry for the inconvenience.