Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RembgNode_Mix Error: "...CUDA_PATH is set but CUDA wasn't able to be loaded..." #344

Open
krajacic opened this issue Oct 9, 2024 · 1 comment

Comments

@krajacic
Copy link

krajacic commented Oct 9, 2024

Hey guys,
Not sure where is the problem with the error because everything was working fine and then suddenly I got this error when tried to queue prompt.

ComfyUI Error Report

Error Details

  • Node Type: RembgNode_Mix
  • 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 "D:\AI\ComfyUI_windows_portable\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 "D:\AI\ComfyUI_windows_portable\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 "D:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 163, in _map_node_over_list
    process_inputs(input_data_all, 0)

  File "D:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-mixlab-nodes\nodes\RembgNode.py", line 700, in run
    masks,rgba_images,rgb_images=run_rembg(model_name,images, comfy.utils.ProgressBar(len(images) ))
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-mixlab-nodes\nodes\RembgNode.py", line 601, in run_rembg
    rembg_session = new_session(model_name)
                    ^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\rembg\session_factory.py", line 44, in new_session
    return session_class(model_name, sess_opts, providers, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\rembg\sessions\base.py", line 34, in __init__
    self.inner_session = ort.InferenceSession(
                         ^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 394, in __init__
    raise fallback_error from e

  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 389, in __init__
    self._create_inference_session(self._fallback_providers, None)

  File "D:\AI\ComfyUI_windows_portable\python_embeded\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

  • ComfyUI Version: v0.2.2-96-g203942c
  • Arguments: ComfyUI\main.py --windows-standalone-build
  • OS: nt
  • Python Version: 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
  • Embedded Python: true
  • PyTorch Version: 2.4.1+cu124

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 25756696576
    • VRAM Free: 24110956544
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2024-10-09 18:22:59,511 - root - INFO - Total VRAM 24564 MB, total RAM 65307 MB
2024-10-09 18:22:59,511 - root - INFO - pytorch version: 2.4.1+cu124
2024-10-09 18:22:59,512 - root - INFO - Set vram state to: NORMAL_VRAM
2024-10-09 18:22:59,512 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
2024-10-09 18:23:00,234 - root - INFO - Using pytorch cross attention
2024-10-09 18:23:02,223 - root - INFO - [Prompt Server] web root: D:\AI\ComfyUI_windows_portable\ComfyUI\web
2024-10-09 18:23:02,227 - root - INFO - Adding extra search path checkpoints D:\AI\stable-diffusion-webui\models/Stable-diffusion/
2024-10-09 18:23:02,227 - root - INFO - Adding extra search path clip D:\AI\stable-diffusion-webui\models/clip/
2024-10-09 18:23:02,227 - root - INFO - Adding extra search path clip_interrogator D:\AI\stable-diffusion-webui\models/clip_interrogator/
2024-10-09 18:23:02,227 - root - INFO - Adding extra search path clip_vision D:\AI\stable-diffusion-webui\models/clip_vision/
2024-10-09 18:23:02,227 - root - INFO - Adding extra search path controlnet D:\AI\stable-diffusion-webui\models/controlnet/
2024-10-09 18:23:02,227 - root - INFO - Adding extra search path embeddings D:\AI\stable-diffusion-webui\models/Embeddings/
2024-10-09 18:23:02,227 - root - INFO - Adding extra search path loras D:\AI\stable-diffusion-webui\models/Lora/
2024-10-09 18:23:02,228 - root - INFO - Adding extra search path upscale_models D:\AI\stable-diffusion-webui\models/upscale_models/
2024-10-09 18:23:02,228 - root - INFO - Adding extra search path vae D:\AI\stable-diffusion-webui\models/VAE/
2024-10-09 18:23:02,228 - root - INFO - Adding extra search path vae_approx D:\AI\stable-diffusion-webui\models/VAE_approx/
2024-10-09 18:23:02,228 - root - INFO - Adding extra search path ipadapter D:\AI\stable-diffusion-webui\models/ipadapter/
2024-10-09 18:23:03,085 - root - WARNING - Traceback (most recent call last):
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1998, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\AI\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\adetailer\\__init__.py'

2024-10-09 18:23:03,085 - root - WARNING - Cannot import D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\adetailer module for custom nodes: [Errno 2] No such file or directory: 'D:\\AI\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\adetailer\\__init__.py'
2024-10-09 18:23:06,968 - root - INFO - --------------
2024-10-09 18:23:06,969 - root - INFO - �[91m ### Mixlab Nodes: �[93mLoaded
2024-10-09 18:23:06,969 - root - INFO - ChatGPT.available True
2024-10-09 18:23:06,970 - root - INFO - edit_mask.available True
2024-10-09 18:23:07,723 - root - INFO - ClipInterrogator.available True
2024-10-09 18:23:08,035 - root - INFO - PromptGenerate.available True
2024-10-09 18:23:08,036 - root - INFO - ChinesePrompt.available True
2024-10-09 18:23:08,036 - root - INFO - RembgNode_.available True
2024-10-09 18:23:08,420 - root - INFO - TripoSR.available
2024-10-09 18:23:08,421 - root - INFO - MiniCPMNode.available
2024-10-09 18:23:08,648 - root - INFO - Scenedetect.available
2024-10-09 18:23:08,711 - root - INFO - FishSpeech.available
2024-10-09 18:23:08,738 - root - INFO - SenseVoice.available
2024-10-09 18:23:08,738 - root - INFO - �[93m -------------- �[0m
2024-10-09 18:23:10,623 - root - INFO - 
Import times for custom nodes:
2024-10-09 18:23:10,623 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Image-Selector
2024-10-09 18:23:10,623 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui-Yolov8
2024-10-09 18:23:10,623 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\SD-Latent-Interposer
2024-10-09 18:23:10,623 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
2024-10-09 18:23:10,623 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2024-10-09 18:23:10,624 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-easy-grids
2024-10-09 18:23:10,624 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_JPS-Nodes
2024-10-09 18:23:10,624 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
2024-10-09 18:23:10,624 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-lama-remover
2024-10-09 18:23:10,624 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\mikey_nodes
2024-10-09 18:23:10,624 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-image-saver
2024-10-09 18:23:10,624 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
2024-10-09 18:23:10,625 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
2024-10-09 18:23:10,625 - root - INFO -    0.0 seconds (IMPORT FAILED): D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\adetailer
2024-10-09 18:23:10,625 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF
2024-10-09 18:23:10,625 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
2024-10-09 18:23:10,625 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-N-Sidebar
2024-10-09 18:23:10,625 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
2024-10-09 18:23:10,626 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui
2024-10-09 18:23:10,626 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2024-10-09 18:23:10,626 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-10-09 18:23:10,626 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
2024-10-09 18:23:10,626 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_bitsandbytes_NF4
2024-10-09 18:23:10,626 - root - INFO -    0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-tensorops
2024-10-09 18:23:10,627 - root - INFO -    0.1 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-segment-anything-2
2024-10-09 18:23:10,627 - root - INFO -    0.2 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_LayerStyle
2024-10-09 18:23:10,627 - root - INFO -    0.2 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
2024-10-09 18:23:10,627 - root - INFO -    0.2 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2024-10-09 18:23:10,627 - root - INFO -    0.3 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Documents
2024-10-09 18:23:10,627 - root - INFO -    0.3 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Florence2
2024-10-09 18:23:10,628 - root - INFO -    0.7 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Easy-Use
2024-10-09 18:23:10,628 - root - INFO -    0.7 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Crystools
2024-10-09 18:23:10,628 - root - INFO -    0.7 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
2024-10-09 18:23:10,628 - root - INFO -    0.7 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_dagthomas
2024-10-09 18:23:10,628 - root - INFO -    3.2 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-mixlab-nodes
2024-10-09 18:23:10,628 - root - INFO - 
2024-10-09 18:23:10,636 - root - INFO - Starting server

2024-10-09 18:23:10,637 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-10-09 18:24:23,125 - root - INFO - got prompt
2024-10-09 18:24:23,533 - 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-10-09 18:24:23,555 - root - ERROR - Traceback (most recent call last):
  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 383, in __init__
    self._create_inference_session(providers, provider_options, disabled_optimizers)
  File "D:\AI\ComfyUI_windows_portable\python_embeded\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 "D:\AI\ComfyUI_windows_portable\python_embeded\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 "D:\AI\ComfyUI_windows_portable\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 "D:\AI\ComfyUI_windows_portable\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 "D:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 163, in _map_node_over_list
    process_inputs(input_data_all, 0)
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-mixlab-nodes\nodes\RembgNode.py", line 700, in run
    masks,rgba_images,rgb_images=run_rembg(model_name,images, comfy.utils.ProgressBar(len(images) ))
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-mixlab-nodes\nodes\RembgNode.py", line 601, in run_rembg
    rembg_session = new_session(model_name)
                    ^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\rembg\session_factory.py", line 44, in new_session
    return session_class(model_name, sess_opts, providers, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\rembg\sessions\base.py", line 34, in __init__
    self.inner_session = ort.InferenceSession(
                         ^^^^^^^^^^^^^^^^^^^^^
  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 394, in __init__
    raise fallback_error from e
  File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 389, in __init__
    self._create_inference_session(self._fallback_providers, None)
  File "D:\AI\ComfyUI_windows_portable\python_embeded\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-10-09 18:24:23,557 - root - INFO - Prompt executed in 0.43 seconds

Attached Workflow

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

{"last_node_id":82,"last_link_id":106,"nodes":[{"id":8,"type":"VAEDecode","pos":{"0":1209,"1":188},"size":{"0":210,"1":46},"flags":{},"order":18,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":7},{"name":"vae","type":"VAE","link":8}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[9],"slot_index":0}],"properties":{"Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":5,"type":"EmptyLatentImage","pos":{"0":473,"1":609},"size":{"0":315,"1":106},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"LATENT","type":"LATENT","links":[2],"slot_index":0}],"properties":{"Node name for S&R":"EmptyLatentImage"},"widgets_values":[896,1152,1]},{"id":9,"type":"SaveImage","pos":{"0":1451,"1":189},"size":{"0":553.80908203125,"1":844.8727416992188},"flags":{},"order":19,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":9}],"outputs":[],"properties":{"Node name for S&R":"SaveImage"},"widgets_values":["ComfyUI"]},{"id":23,"type":"PreviewImage","pos":{"0":830,"1":814},"size":{"0":280.8103942871094,"1":335.18475341796875},"flags":{},"order":15,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":37}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":28,"type":"DepthAnythingPreprocessor","pos":{"0":382,"1":1111},"size":{"0":315,"1":82},"flags":{},"order":11,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":69}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[37,39],"slot_index":0}],"title":"DepthAnythingPreprocessor","properties":{"Node name for S&R":"DepthAnythingPreprocessor"},"widgets_values":["depth_anything_vitl14.pth",896]},{"id":50,"type":"RembgNode_Mix","pos":{"0":388,"1":1266},"size":{"0":327.5999755859375,"1":98},"flags":{},"order":8,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":68}],"outputs":[{"name":"masks","type":"MASK","links":null,"shape":6},{"name":"images","type":"IMAGE","links":[69],"slot_index":1,"shape":6},{"name":"RGBAs","type":"RGBA","links":null,"shape":6}],"properties":{"Node name for S&R":"RembgNode_Mix"},"widgets_values":["u2net"]},{"id":7,"type":"CLIPTextEncode","pos":{"0":413,"1":389},"size":{"0":425.27801513671875,"1":180.6060791015625},"flags":{},"order":13,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":21}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[42],"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":[""],"color":"#322","bgcolor":"#533"},{"id":14,"type":"Power Lora Loader (rgthree)","pos":{"0":3,"1":130},"size":{"0":340.20001220703125,"1":166},"flags":{},"order":9,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":17,"dir":3},{"name":"clip","type":"CLIP","link":18,"dir":3}],"outputs":[{"name":"MODEL","type":"MODEL","links":[20],"slot_index":0,"shape":3,"dir":4},{"name":"CLIP","type":"CLIP","links":[19,21],"slot_index":1,"shape":3,"dir":4}],"properties":{"Show Strengths":"Single Strength"},"widgets_values":[null,{"type":"PowerLoraLoaderHeaderWidget"},{"on":false,"lora":"AngelinaV2Dogu.safetensors","strength":1,"strengthTwo":null},{"on":true,"lora":"ana_lora_sdxl_v1-64_cumul_fp16.safetensors","strength":1,"strengthTwo":null},null,""]},{"id":3,"type":"KSampler","pos":{"0":863,"1":186},"size":{"0":315,"1":262},"flags":{},"order":17,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":20},{"name":"positive","type":"CONDITIONING","link":43},{"name":"negative","type":"CONDITIONING","link":44},{"name":"latent_image","type":"LATENT","link":2}],"outputs":[{"name":"LATENT","type":"LATENT","links":[7],"slot_index":0}],"properties":{"Node name for S&R":"KSampler"},"widgets_values":[1085888393300462,"fixed",30,1.8,"dpmpp_sde","karras",1]},{"id":34,"type":"ControlNetApplyAdvanced","pos":{"0":417,"1":808},"size":{"0":315,"1":186},"flags":{},"order":16,"mode":0,"inputs":[{"name":"positive","type":"CONDITIONING","link":41},{"name":"negative","type":"CONDITIONING","link":42},{"name":"control_net","type":"CONTROL_NET","link":40},{"name":"image","type":"IMAGE","link":39},{"name":"vae","type":"VAE","link":null,"shape":7}],"outputs":[{"name":"positive","type":"CONDITIONING","links":[43],"slot_index":0},{"name":"negative","type":"CONDITIONING","links":[44],"slot_index":1}],"properties":{"Node name for S&R":"ControlNetApplyAdvanced"},"widgets_values":[0.8,0,1]},{"id":16,"type":"LoadImage","pos":{"0":-126,"1":830},"size":{"0":315,"1":314},"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[68],"slot_index":0},{"name":"MASK","type":"MASK","links":null}],"title":"LoadImage","properties":{"Node name for S&R":"LoadImage"},"widgets_values":["Pose3SDXL.png","image"]},{"id":33,"type":"ControlNetLoader","pos":{"0":-204,"1":693},"size":{"0":458.6544189453125,"1":73.52143859863281},"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"CONTROL_NET","type":"CONTROL_NET","links":[40],"slot_index":0}],"properties":{"Node name for S&R":"ControlNetLoader"},"widgets_values":["controlnet-depth-sdxl-10-xinsir.safetensors"]},{"id":4,"type":"CheckpointLoaderSimple","pos":{"0":26,"1":474},"size":{"0":315,"1":98},"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[17],"slot_index":0},{"name":"CLIP","type":"CLIP","links":[18],"slot_index":1},{"name":"VAE","type":"VAE","links":[8],"slot_index":2}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["realvisxlV50_v50Bakedvae.safetensors"]},{"id":52,"type":"DownloadAndLoadFlorence2Model","pos":{"0":-97.10819244384766,"1":1757.638671875},"size":{"0":365.4000244140625,"1":106},"flags":{},"order":4,"mode":4,"inputs":[{"name":"lora","type":"PEFTLORA","link":null,"shape":7}],"outputs":[{"name":"florence2_model","type":"FL2MODEL","links":[70]}],"properties":{"Node name for S&R":"DownloadAndLoadFlorence2Model"},"widgets_values":["microsoft/Florence-2-base","fp16","sdpa"]},{"id":53,"type":"LoadImage","pos":{"0":-366,"1":2002},"size":{"0":315,"1":314},"flags":{},"order":5,"mode":4,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[71]},{"name":"MASK","type":"MASK","links":null}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["Pose3SDXL.png","image"]},{"id":51,"type":"Florence2Run","pos":{"0":-18.08363151550293,"1":1938.5919189453125},"size":{"0":400,"1":352},"flags":{},"order":10,"mode":4,"inputs":[{"name":"image","type":"IMAGE","link":71},{"name":"florence2_model","type":"FL2MODEL","link":70}],"outputs":[{"name":"image","type":"IMAGE","links":null},{"name":"mask","type":"MASK","links":null},{"name":"caption","type":"STRING","links":[72],"slot_index":2},{"name":"data","type":"JSON","links":null}],"properties":{"Node name for S&R":"Florence2Run"},"widgets_values":["","more_detailed_caption",true,false,1024,3,true,"",1062022361050161,"randomize"]},{"id":54,"type":"ShowText|pysssss","pos":{"0":501,"1":1938},"size":{"0":349.04315185546875,"1":267.2972412109375},"flags":{},"order":14,"mode":4,"inputs":[{"name":"text","type":"STRING","link":72,"widget":{"name":"text"}}],"outputs":[{"name":"STRING","type":"STRING","links":null,"shape":6}],"properties":{"Node name for S&R":"ShowText|pysssss"},"widgets_values":["","The image is a portrait of a young woman standing in a field. She is wearing a black lace dress with long sleeves and a high neckline. The dress is fitted at the waist and flares out at the hips. She has long dark hair styled in loose waves and is wearing large black hat with a wide brim. The woman is posing with one hand on her hip and the other resting on her thigh. The background is a field of tall grass with a tree in the distance. The sky is orange and pink, indicating that it is either sunrise or sunset. The overall mood of the image is peaceful and serene."]},{"id":56,"type":"Note","pos":{"0":-544,"1":439},"size":{"0":324.8861083984375,"1":120.42111206054688},"flags":{},"order":6,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Beautiful ohwx with dark brown hair in a gothic lace dress with a hat, standing in a field of golden wheat at sunset. Her makeup is dark and dramatic, creating a striking, hyper-realistic photographic effect."],"color":"#432","bgcolor":"#653"},{"id":55,"type":"Note","pos":{"0":-506.815185546875,"1":134.3379669189453},"size":{"0":273.4562683105469,"1":265.929931640625},"flags":{},"order":7,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["The image is a portrait of a young woman standing in a field. She is wearing a black lace dress with long sleeves and a high neckline. The dress is fitted at the waist and flares out at the hips. She has long dark hair styled in loose waves and is wearing large black hat with a wide brim. The woman is posing with one hand on her hip and the other resting on her thigh. The background is a field of tall grass with a tree in the distance. The sky is orange and pink, indicating that it is either sunrise or sunset. The overall mood of the image is peaceful and serene."],"color":"#432","bgcolor":"#653"},{"id":6,"type":"CLIPTextEncode","pos":{"0":415,"1":186},"size":{"0":422.84503173828125,"1":164.31304931640625},"flags":{},"order":12,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":19}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[41],"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["The image is a portrait of a young woman standing in a field. She is wearing a black lace dress with long sleeves and a high neckline. The dress is fitted at the waist and flares out at the hips. She has long dark hair styled in loose waves and is wearing large black hat with a wide brim. The woman is posing with one hand on her hip and the other resting on her thigh. The background is a field of tall grass with a tree in the distance. The sky is orange and pink, indicating that it is either sunrise or sunset. The overall mood of the image is peaceful and serene."],"color":"#232","bgcolor":"#353"}],"links":[[2,5,0,3,3,"LATENT"],[7,3,0,8,0,"LATENT"],[8,4,2,8,1,"VAE"],[9,8,0,9,0,"IMAGE"],[17,4,0,14,0,"MODEL"],[18,4,1,14,1,"CLIP"],[19,14,1,6,0,"CLIP"],[20,14,0,3,0,"MODEL"],[21,14,1,7,0,"CLIP"],[37,28,0,23,0,"IMAGE"],[39,28,0,34,3,"IMAGE"],[40,33,0,34,2,"CONTROL_NET"],[41,6,0,34,0,"CONDITIONING"],[42,7,0,34,1,"CONDITIONING"],[43,34,0,3,1,"CONDITIONING"],[44,34,1,3,2,"CONDITIONING"],[68,16,0,50,0,"IMAGE"],[69,50,1,28,0,"IMAGE"],[70,52,0,51,1,"FL2MODEL"],[71,53,0,51,0,"IMAGE"],[72,51,2,54,0,"STRING"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.5445000000000008,"offset":[1681.8272540695598,-251.51459349144386]}},"version":0.4}

NVIDIA SMI

  +-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.94                 Driver Version: 560.94         CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                  Driver-Model | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4090      WDDM  |   00000000:01:00.0  On |                  Off |
|  0%   34C    P8             24W /  450W |    1808MiB /  24564MiB |     11%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

NVCC --VERSION

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Feb__8_05:53:42_Coordinated_Universal_Time_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0

Additional Context

Python version from D:\AI\ComfyUI_windows_portable\python_embeded is 3.11.9
While python version from regular (c:\Users\User) CMD is 3.10.11. In case this might be the problem.

Environment PATH is set correctly I would say: https://prnt.sc/kwxCPVKMXMN1

I just started with SD and ComfyUI a week ago and while following tons of tutorials from YT, I have installed tons of custom nodes and such things. Don't be mad at me 😄 Thanks 🙏

@krajacic
Copy link
Author

krajacic commented Oct 9, 2024

onnxruntime-gpu and onnxruntime are both 1.19.2 (took from pip list from python_embedded)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant