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

from onnx.onnx_cpp2py_export import ONNX_MLImportError: DLL load failed while importing onnx_cpp2py_export: Dynamic link library (DLL) initialization routine failed. #227

Open
king19871214 opened this issue Sep 30, 2024 · 2 comments

Comments

@king19871214
Copy link

Snipaste_2024-09-30_10-57-04
When I re-download the latest comfyui package and upgrade CUDA 12.4, PyTorch 2.4.1 and xformers 0.0.28, I fail to install instantID. How do I solve the problem?

@amtarr
Copy link

amtarr commented Oct 2, 2024

Hello , I am getting a similar error , for both instant ID and IP Adaptor as of today .

I am unsure what the trigger is , I tried reverting comfy UI to a commit I knew worked but it didnt solve the issue . Will be trying to revert torch and Python after .

ComfyUI Error Report

Error Details

  • Node Type: IPAdapterUnifiedLoaderFaceID
  • Exception Type: Exception
  • Exception Message: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed.

Stack Trace

  File "C:\Gen_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 "C:\Gen_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 "C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

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

  File "C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 610, in load_models
    self.insightface['model'] = insightface_loader(provider)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\utils.py", line 161, in insightface_loader
    raise Exception(e)

System Information

  • ComfyUI Version: v0.2.2-85-gd985d1d
  • 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+cu121

Devices

  • Name: cuda:0 NVIDIA RTX 6000 Ada Generation : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 51526500352
    • VRAM Free: 49519001600
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2024-10-02 12:43:58,540 - root - INFO - Total VRAM 49140 MB, total RAM 130852 MB
2024-10-02 12:43:58,540 - root - INFO - pytorch version: 2.4.1+cu121
2024-10-02 12:43:58,540 - root - INFO - Set vram state to: NORMAL_VRAM
2024-10-02 12:43:58,541 - root - INFO - Device: cuda:0 NVIDIA RTX 6000 Ada Generation : cudaMallocAsync
2024-10-02 12:44:00,307 - root - INFO - Using pytorch cross attention
2024-10-02 12:44:02,015 - root - INFO - [Prompt Server] web root: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\web
2024-10-02 12:44:02,017 - root - INFO - Adding extra search path checkpoints path/to/stable-diffusion-webui/models/Stable-diffusion
2024-10-02 12:44:02,029 - root - INFO - Adding extra search path configs path/to/stable-diffusion-webui/models/Stable-diffusion
2024-10-02 12:44:02,029 - root - INFO - Adding extra search path vae path/to/stable-diffusion-webui/models/VAE
2024-10-02 12:44:02,029 - root - INFO - Adding extra search path loras path/to/stable-diffusion-webui/models/Lora
2024-10-02 12:44:02,029 - root - INFO - Adding extra search path loras path/to/stable-diffusion-webui/models/LyCORIS
2024-10-02 12:44:02,029 - root - INFO - Adding extra search path upscale_models path/to/stable-diffusion-webui/models/ESRGAN
2024-10-02 12:44:02,029 - root - INFO - Adding extra search path upscale_models path/to/stable-diffusion-webui/models/RealESRGAN
2024-10-02 12:44:02,029 - root - INFO - Adding extra search path upscale_models path/to/stable-diffusion-webui/models/SwinIR
2024-10-02 12:44:02,030 - root - INFO - Adding extra search path embeddings path/to/stable-diffusion-webui/embeddings
2024-10-02 12:44:02,030 - root - INFO - Adding extra search path hypernetworks path/to/stable-diffusion-webui/models/hypernetworks
2024-10-02 12:44:02,030 - root - INFO - Adding extra search path controlnet path/to/stable-diffusion-webui/models/ControlNet
2024-10-02 12:44:02,030 - root - INFO - Adding extra search path checkpoints C:\Gen_AI\my_models\models\checkpoints\
2024-10-02 12:44:02,030 - root - INFO - Adding extra search path clip_vision C:\Gen_AI\my_models\models\clip_vision\
2024-10-02 12:44:02,030 - root - INFO - Adding extra search path controlnet C:\Gen_AI\my_models\models\controlnets\
2024-10-02 12:44:02,030 - root - INFO - Adding extra search path embeddings C:\Gen_AI\my_models\models\embeddings\
2024-10-02 12:44:02,030 - root - INFO - Adding extra search path loras C:\Gen_AI\my_models\models\loras\
2024-10-02 12:44:02,564 - root - INFO - Total VRAM 49140 MB, total RAM 130852 MB
2024-10-02 12:44:02,565 - root - INFO - pytorch version: 2.4.1+cu121
2024-10-02 12:44:02,565 - root - INFO - Set vram state to: NORMAL_VRAM
2024-10-02 12:44:02,565 - root - INFO - Device: cuda:0 NVIDIA RTX 6000 Ada Generation : cudaMallocAsync
2024-10-02 12:44:03,553 - root - INFO - --------------
2024-10-02 12:44:03,554 - root - INFO - �[91m ### Mixlab Nodes: �[93mLoaded
2024-10-02 12:44:03,554 - root - INFO - ChatGPT.available True
2024-10-02 12:44:03,554 - root - INFO - edit_mask.available True
2024-10-02 12:44:03,805 - root - INFO - ClipInterrogator.available True
2024-10-02 12:44:03,980 - root - INFO - PromptGenerate.available True
2024-10-02 12:44:03,980 - root - INFO - ChinesePrompt.available True
2024-10-02 12:44:03,980 - root - INFO - RembgNode_.available True
2024-10-02 12:44:04,200 - root - INFO - TripoSR.available
2024-10-02 12:44:04,200 - root - INFO - MiniCPMNode.available
2024-10-02 12:44:04,232 - root - INFO - Scenedetect.available
2024-10-02 12:44:04,234 - root - INFO - FishSpeech.available False
2024-10-02 12:44:04,238 - root - INFO - SenseVoice.available
2024-10-02 12:44:04,238 - root - INFO - �[93m -------------- �[0m
2024-10-02 12:44:04,413 - root - INFO - 
Import times for custom nodes:
2024-10-02 12:44:04,413 - root - INFO -    0.0 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2024-10-02 12:44:04,413 - root - INFO -    0.0 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
2024-10-02 12:44:04,413 - root - INFO -    0.0 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals
2024-10-02 12:44:04,413 - root - INFO -    0.0 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
2024-10-02 12:44:04,413 - root - INFO -    0.0 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
2024-10-02 12:44:04,413 - root - INFO -    0.0 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2024-10-02 12:44:04,413 - root - INFO -    0.0 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
2024-10-02 12:44:04,413 - root - INFO -    0.0 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes
2024-10-02 12:44:04,413 - root - INFO -    0.1 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Crystools
2024-10-02 12:44:04,414 - root - INFO -    0.1 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-10-02 12:44:04,414 - root - INFO -    0.2 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2024-10-02 12:44:04,414 - root - INFO -    1.5 seconds: C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-mixlab-nodes
2024-10-02 12:44:04,414 - root - INFO - 
2024-10-02 12:44:04,420 - root - INFO - Starting server

2024-10-02 12:44:04,421 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-10-02 12:44:07,454 - root - INFO - got prompt
2024-10-02 12:44:07,672 - root - INFO - model weight dtype torch.float16, manual cast: None
2024-10-02 12:44:07,673 - root - INFO - model_type EPS
2024-10-02 12:44:08,649 - root - INFO - Using pytorch attention in VAE
2024-10-02 12:44:08,650 - root - INFO - Using pytorch attention in VAE
2024-10-02 12:44:17,828 - root - ERROR - !!! Exception during processing !!! DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed.
2024-10-02 12:44:17,834 - root - ERROR - Traceback (most recent call last):
  File "C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\utils.py", line 159, in insightface_loader
    from insightface.app import FaceAnalysis
  File "C:\Gen_AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\__init__.py", line 16, in <module>
    from . import model_zoo
  File "C:\Gen_AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\model_zoo\__init__.py", line 1, in <module>
    from .model_zoo import get_model
  File "C:\Gen_AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\model_zoo\model_zoo.py", line 11, in <module>
    from .arcface_onnx import *
  File "C:\Gen_AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\model_zoo\arcface_onnx.py", line 10, in <module>
    import onnx
  File "C:\Gen_AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnx\__init__.py", line 77, in <module>
    from onnx.onnx_cpp2py_export import ONNX_ML
ImportError: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Gen_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 "C:\Gen_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 "C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 610, in load_models
    self.insightface['model'] = insightface_loader(provider)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Gen_AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\utils.py", line 161, in insightface_loader
    raise Exception(e)
Exception: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed.

2024-10-02 12:44:17,835 - root - INFO - Prompt executed in 10.38 seconds

Attached Workflow

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

{"last_node_id":53,"last_link_id":77,"nodes":[{"id":1,"type":"LoadImage","pos":{"0":1202,"1":536},"size":{"0":315,"1":314},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[62],"slot_index":0,"shape":3},{"name":"MASK","type":"MASK","links":null,"shape":3}],"title":"Portrait","properties":{"Node name for S&R":"LoadImage"},"widgets_values":["SabourHeadshot_Fall.jpg","image"]},{"id":2,"type":"IPAdapterAdvanced","pos":{"0":3016.859619140625,"1":316.37774658203125},"size":{"0":311.504150390625,"1":274},"flags":{},"order":27,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":30},{"name":"ipadapter","type":"IPADAPTER","link":26},{"name":"image","type":"IMAGE","link":59},{"name":"image_negative","type":"IMAGE","link":null},{"name":"attn_mask","type":"MASK","link":null},{"name":"clip_vision","type":"CLIP_VISION","link":null},{"name":"weight","type":"FLOAT","link":68,"widget":{"name":"weight"}}],"outputs":[{"name":"MODEL","type":"MODEL","links":[57],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"IPAdapterAdvanced"},"widgets_values":[0.5,"style transfer","concat",0,1,"V only"]},{"id":6,"type":"Anything Everywhere3","pos":{"0":1256,"1":907},"size":{"0":252,"1":66},"flags":{},"order":24,"mode":0,"inputs":[{"name":"MODEL","type":"*","link":4,"color_on":"#8978a7"},{"name":"CLIP","type":"*","link":5,"color_on":"#eacb8b"},{"name":"VAE","type":"*","link":6,"color_on":"#be616b"}],"outputs":[],"properties":{"Node name for S&R":"Anything Everywhere3","group_restricted":0,"color_restricted":0},"widgets_values":[]},{"id":7,"type":"IPAdapterAdvanced","pos":{"0":2425.859619140625,"1":311.37774658203125},"size":{"0":315,"1":278},"flags":{},"order":26,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":76},{"name":"ipadapter","type":"IPADAPTER","link":77},{"name":"image","type":"IMAGE","link":63},{"name":"image_negative","type":"IMAGE","link":null},{"name":"attn_mask","type":"MASK","link":null},{"name":"clip_vision","type":"CLIP_VISION","link":null}],"outputs":[{"name":"MODEL","type":"MODEL","links":[30],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"IPAdapterAdvanced"},"widgets_values":[1,"linear","concat",0.3,1,"V only"]},{"id":8,"type":"IPAdapterUnifiedLoader","pos":{"0":2774.579833984375,"1":324.37774658203125},"size":{"0":315,"1":78},"flags":{"collapsed":true},"order":1,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":null},{"name":"ipadapter","type":"IPADAPTER","link":null}],"outputs":[{"name":"model","type":"MODEL","links":[],"slot_index":0,"shape":3},{"name":"ipadapter","type":"IPADAPTER","links":[26],"slot_index":1,"shape":3}],"properties":{"Node name for S&R":"IPAdapterUnifiedLoader"},"widgets_values":["PLUS (high strength)"]},{"id":10,"type":"LoraLoader","pos":{"0":3467,"1":93},"size":{"0":315,"1":126},"flags":{},"order":28,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":57},{"name":"clip","type":"CLIP","link":null}],"outputs":[{"name":"MODEL","type":"MODEL","links":[37],"slot_index":0,"shape":3},{"name":"CLIP","type":"CLIP","links":[41,42],"slot_index":1,"shape":3}],"properties":{"Node name for S&R":"LoraLoader"},"widgets_values":["lcmLoraSDXL.safetensors",0.6,0]},{"id":11,"type":"KSampler","pos":{"0":3967,"1":344},"size":{"0":315,"1":474},"flags":{},"order":32,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":56},{"name":"positive","type":"CONDITIONING","link":13},{"name":"negative","type":"CONDITIONING","link":14},{"name":"latent_image","type":"LATENT","link":null},{"name":"seed","type":"INT","link":null,"widget":{"name":"seed"}}],"outputs":[{"name":"LATENT","type":"LATENT","links":[16],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"KSampler"},"widgets_values":[46747672326555,"randomize",20,3,"lcm","karras",1]},{"id":12,"type":"CLIPTextEncode","pos":{"0":3701,"1":428},"size":{"0":400,"1":200},"flags":{"collapsed":true},"order":30,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":41},{"name":"text","type":"STRING","link":44,"widget":{"name":"text"}}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[13],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["man ((spooky)), stylized portrait of an sultry demon, giant, wide, deepset eyes, , stylized character, ((3D)), ((whimsical)), patterned clothing, ((quirky cartoon)), ((halloween animation)), dark, dramatic, ((workshop))"]},{"id":13,"type":"CLIPTextEncode","pos":{"0":3685,"1":500},"size":{"0":400,"1":200},"flags":{"collapsed":true},"order":31,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":42},{"name":"text","type":"STRING","link":45,"widget":{"name":"text"}}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[14],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["ugly, distorted, disturbing, horrified, noisy, blurry, gross, displeasing, creepy, old , hyper realistic, photographic, aged, shiny, plastic, toy, face painting, soft"]},{"id":14,"type":"EmptyLatentImage","pos":{"0":1559,"1":874},"size":{"0":315,"1":106},"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"LATENT","type":"LATENT","links":[64],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"EmptyLatentImage"},"widgets_values":[1024,1024,4]},{"id":15,"type":"VAEDecode","pos":{"0":4159,"1":869},"size":{"0":210,"1":46},"flags":{"collapsed":true},"order":33,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":16},{"name":"vae","type":"VAE","link":null}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[17],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":16,"type":"SaveImage","pos":{"0":4315,"1":342},"size":{"0":467.10455322265625,"1":504.919677734375},"flags":{},"order":34,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":17}],"outputs":[],"properties":{},"widgets_values":["ComfyUI"]},{"id":18,"type":"RescaleCFG","pos":{"0":3712,"1":348},"size":{"0":315,"1":58},"flags":{"collapsed":true},"order":29,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":37},{"name":"multiplier","type":"FLOAT","link":66,"widget":{"name":"multiplier"}}],"outputs":[{"name":"MODEL","type":"MODEL","links":[56],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"RescaleCFG"},"widgets_values":[0.7000000000000001]},{"id":19,"type":"Seed Everywhere","pos":{"0":1213,"1":1028},"size":{"0":315,"1":82},"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"INT","type":"INT","links":null,"shape":3}],"properties":{"Node name for S&R":"Seed Everywhere","group_restricted":0,"color_restricted":0},"widgets_values":[909013414842912,"randomize"]},{"id":20,"type":"Note","pos":{"0":3094,"1":774},"size":{"0":210,"1":60},"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["portrait of a adorable witch ((quirky)) 3D character, with large eyes, whimsical, concept art, in the style of Tim Burton, cinematic, epic lighting , beautiful , eerie , halloween"],"color":"#432","bgcolor":"#653"},{"id":22,"type":"PrimitiveNode","pos":{"0":1597,"1":1219},"size":{"0":472.48699951171875,"1":120.34407043457031},"flags":{},"order":5,"mode":0,"inputs":[],"outputs":[{"name":"STRING","type":"STRING","links":[44],"slot_index":0,"widget":{"name":"text"}}],"properties":{"Run widget replace on values":false},"widgets_values":["man ((spooky)), stylized portrait of an sultry demon, giant, wide, deepset eyes, , stylized character, ((3D)), ((whimsical)), patterned clothing, ((quirky cartoon)), ((halloween animation)), dark, dramatic, ((workshop))"]},{"id":23,"type":"PrimitiveNode","pos":{"0":2777,"1":1101},"size":{"0":210,"1":76},"flags":{},"order":6,"mode":0,"inputs":[],"outputs":[{"name":"STRING","type":"STRING","links":[45],"slot_index":0,"widget":{"name":"text"}}],"properties":{"Run widget replace on values":false},"widgets_values":["ugly, distorted, disturbing, horrified, noisy, blurry, gross, displeasing, creepy, old , hyper realistic, photographic, aged, shiny, plastic, toy, face painting, soft"]},{"id":25,"type":"Note","pos":{"0":2376,"1":906},"size":{"0":372.9134826660156,"1":179.1160125732422},"flags":{},"order":7,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":[" wide eyes, unique expression , animated,  ((stylized), (chibi), ((painterly)), ((brush strokes)), ((quirky)), 3D cartoon character,((whimsical)), (((concept art))), beautiful, in the style of Tim Burton,  epic lighting, dramatic fog and depth of field, mysterious, eerie , ((halloween)), pumpkins in the background , unique, character design, detailed "],"color":"#432","bgcolor":"#653"},{"id":28,"type":"SetNode","pos":{"0":1716,"1":279},"size":{"0":210,"1":58},"flags":{},"order":25,"mode":0,"inputs":[{"name":"IMAGE","type":"IMAGE","link":58}],"outputs":[{"name":"*","type":"*","links":null}],"title":"Set_ReferencePortrait","properties":{"previousName":"ReferencePortrait"},"widgets_values":["ReferencePortrait"]},{"id":29,"type":"GetNode","pos":{"0":2778.579833984375,"1":376.37774658203125},"size":{"0":210,"1":58},"flags":{"collapsed":true},"order":8,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[59],"slot_index":0}],"title":"Get_ReferencePortrait","properties":{},"widgets_values":["ReferencePortrait"]},{"id":30,"type":"SetNode","pos":{"0":1416,"1":284},"size":{"0":210,"1":58},"flags":{},"order":20,"mode":0,"inputs":[{"name":"IMAGE","type":"IMAGE","link":62}],"outputs":[{"name":"*","type":"*","links":null}],"title":"Set_SourcePortrait","properties":{"previousName":"SourcePortrait"},"widgets_values":["SourcePortrait"]},{"id":31,"type":"GetNode","pos":{"0":2063.859619140625,"1":277.37774658203125},"size":{"0":210,"1":58},"flags":{"collapsed":true},"order":9,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[63],"slot_index":0}],"title":"Get_SourcePortrait","properties":{},"widgets_values":["SourcePortrait"]},{"id":32,"type":"Anything Everywhere","pos":{"0":1590,"1":896},"size":{"0":239.40000915527344,"1":26},"flags":{},"order":21,"mode":0,"inputs":[{"name":"LATENT","type":"*","link":64,"color_on":"#b38ead"}],"outputs":[],"properties":{"Node name for S&R":"Anything Everywhere","group_restricted":0,"color_restricted":0},"widgets_values":[]},{"id":34,"type":"Float","pos":{"0":1190,"1":1260},"size":{"0":315,"1":58},"flags":{},"order":10,"mode":0,"inputs":[],"outputs":[{"name":"FLOAT","type":"FLOAT","links":[65],"slot_index":0,"shape":3}],"title":"CFG Scale Amount","properties":{"Node name for S&R":"Float"},"widgets_values":["0.7"]},{"id":35,"type":"SetNode","pos":{"0":1280,"1":1250},"size":{"0":210,"1":58},"flags":{},"order":22,"mode":0,"inputs":[{"name":"FLOAT","type":"FLOAT","link":65}],"outputs":[{"name":"*","type":"*","links":null}],"title":"Set_CFGScaleAmount","properties":{"previousName":"CFGScaleAmount"},"widgets_values":["CFGScaleAmount"]},{"id":36,"type":"GetNode","pos":{"0":3480,"1":344},"size":{"0":210,"1":58},"flags":{"collapsed":true},"order":11,"mode":0,"inputs":[],"outputs":[{"name":"FLOAT","type":"FLOAT","links":[66],"slot_index":0}],"title":"Get_CFGScaleAmount","properties":{},"widgets_values":["CFGScaleAmount"]},{"id":37,"type":"Float","pos":{"0":1562,"1":1032},"size":{"0":315,"1":58},"flags":{"collapsed":false},"order":12,"mode":0,"inputs":[],"outputs":[{"name":"FLOAT","type":"FLOAT","links":[67],"slot_index":0,"shape":3}],"title":"Reference Style Influence","properties":{"Node name for S&R":"Float"},"widgets_values":["0"]},{"id":39,"type":"SetNode","pos":{"0":1637,"1":1028},"size":{"0":226.8000030517578,"1":58},"flags":{},"order":23,"mode":0,"inputs":[{"name":"FLOAT","type":"FLOAT","link":67}],"outputs":[{"name":"*","type":"*","links":null}],"title":"Set_ReferenceStyleInfluence","properties":{"previousName":"ReferenceStyleInfluence"},"widgets_values":["ReferenceStyleInfluence"]},{"id":40,"type":"GetNode","pos":{"0":2763.579833984375,"1":473.37774658203125},"size":{"0":226.8000030517578,"1":58},"flags":{"collapsed":true},"order":13,"mode":0,"inputs":[],"outputs":[{"name":"FLOAT","type":"FLOAT","links":[68],"slot_index":0}],"title":"Get_ReferenceStyleInfluence","properties":{},"widgets_values":["ReferenceStyleInfluence"]},{"id":41,"type":"Note","pos":{"0":2370,"1":1134},"size":{"0":357.4085998535156,"1":154.52210998535156},"flags":{},"order":14,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["man ((spooky)), stylized portrait of a mysterious witch-doctor, weating a striped suit, giant, wide, deepset eyes, unique expression, stylized character, ((3D)), ((whimsical)), patterned clothing, ((quirky cartoon)), ((halloween animation)), dark, dramatic"],"color":"#432","bgcolor":"#653"},{"id":42,"type":"Note","pos":{"0":2296,"1":1335},"size":{"0":210,"1":157.08230590820312},"flags":{},"order":15,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["witch\nwitch-doctor\nvictorian doctor\nmad scientist\nhenchman assistant\nwerewolf\n"],"color":"#432","bgcolor":"#653"},{"id":45,"type":"KepStringLiteral","pos":{"0":1598,"1":1460},"size":{"0":400,"1":200},"flags":{},"order":16,"mode":0,"inputs":[],"outputs":[{"name":"STRING","type":"STRING","links":null,"shape":3}],"properties":{"Node name for S&R":"KepStringLiteral"},"widgets_values":["witch with large hat and detailed intricate clothing \n\nnefarious witch-doctor with a striped suit\n\nmysterious victorian doctor\n\nedwardian mad scientist\n\nfunky henchman assistant, patchwork outfit\n\nhairy wearwolf in a worn plaid shirt\n\ndisfigured Zombie , undead skin rotting teeth, disentigrating clothes, confused expression\n\nconfident and alluring vampire, transylvania , medieval with large fangs\n\n\n\n\n\n\n\n\n\n"]},{"id":5,"type":"CheckpointLoaderSimple","pos":{"0":1204,"1":885},"size":{"0":315,"1":98},"flags":{},"order":17,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[4],"slot_index":0,"shape":3},{"name":"CLIP","type":"CLIP","links":[5],"slot_index":1,"shape":3},{"name":"VAE","type":"VAE","links":[6],"slot_index":2,"shape":3}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["SDXL\\dynavisionXLAllInOneStylized_releaseV0610Bakedvae.safetensors"]},{"id":9,"type":"LoadImage","pos":{"0":1538,"1":494},"size":{"0":315,"1":314},"flags":{},"order":18,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[58],"slot_index":0,"shape":3},{"name":"MASK","type":"MASK","links":null,"shape":3}],"title":"Reference Style","properties":{"Node name for S&R":"LoadImage"},"widgets_values":["IPAdapter_02413_.png","image"]},{"id":53,"type":"IPAdapterUnifiedLoaderFaceID","pos":{"0":1925,"1":715},"size":{"0":390.5999755859375,"1":126},"flags":{},"order":19,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":null},{"name":"ipadapter","type":"IPADAPTER","link":null}],"outputs":[{"name":"MODEL","type":"MODEL","links":[76],"slot_index":0,"shape":3},{"name":"ipadapter","type":"IPADAPTER","links":[77],"slot_index":1,"shape":3}],"properties":{"Node name for S&R":"IPAdapterUnifiedLoaderFaceID"},"widgets_values":["FACEID",0.6,"CPU"]}],"links":[[4,5,0,6,0,"MODEL"],[5,5,1,6,1,"CLIP"],[6,5,2,6,2,"VAE"],[13,12,0,11,1,"CONDITIONING"],[14,13,0,11,2,"CONDITIONING"],[16,11,0,15,0,"LATENT"],[17,15,0,16,0,"IMAGE"],[26,8,1,2,1,"IPADAPTER"],[30,7,0,2,0,"MODEL"],[37,10,0,18,0,"MODEL"],[41,10,1,12,0,"CLIP"],[42,10,1,13,0,"CLIP"],[44,22,0,12,1,"STRING"],[45,23,0,13,1,"STRING"],[46,5,0,3,0,"MODEL"],[47,5,0,8,0,"MODEL"],[48,5,1,10,1,"CLIP"],[49,19,0,11,4,"INT"],[50,5,2,15,1,"VAE"],[56,18,0,11,0,"MODEL"],[57,2,0,10,0,"MODEL"],[58,9,0,28,0,"*"],[59,29,0,2,2,"IMAGE"],[62,1,0,30,0,"*"],[63,31,0,7,2,"IMAGE"],[64,14,0,32,0,"LATENT"],[65,34,0,35,0,"*"],[66,36,0,18,1,"FLOAT"],[67,37,0,39,0,"*"],[68,40,0,2,6,"FLOAT"],[70,5,0,3,0,"MODEL"],[71,5,0,8,0,"MODEL"],[72,5,1,10,1,"CLIP"],[73,14,0,11,3,"LATENT"],[74,19,0,11,4,"INT"],[75,5,2,15,1,"VAE"],[76,53,0,7,0,"MODEL"],[77,53,1,7,1,"IPADAPTER"]],"groups":[{"title":"IP Adaptors- Face and Style","bounding":[1969,177,1447,440],"color":"#3f789e","font_size":24,"flags":{}}],"config":{},"extra":{"ds":{"scale":0.45,"offset":[-293.2986431690422,134.30592908372375]}},"version":0.4}

Additional Context

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

@amtarr
Copy link

amtarr commented Oct 2, 2024

UPDATE : INSTANT ID and IP ADAPTOR WORK after doing the following:
In the IP Adaptor Repo , a long thread goes over the fix . Basically - Onnx Runtime updated and this breaks Face ID and Instant ID.
You need to be on the following : ( @zengxianyang001) described this very well!

onnxruntime==1.18.1 
onnx==1.16.1

How to Do it :
Navicate toy your python_embedded folder and run these commands with commandline.

  1. ) First Check your Onnx version with :
    python.exe -m pip show onnxruntime

If your onnxruntime is a different version that listed above, uninstall it !
2.) Uninstall Onnx runtime
python.exe -m pip uninstall onnx onnxruntime

3.) Now install the proper Versions with :
-m pip install onnx==1.16.1 onnxruntime==1.18.1

( from @papanoyang )

Relaunch comfy , and the tools should now work .

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

2 participants