kijai / ComfyUI-SUPIR

SUPIR upscaling wrapper for ComfyUI
Other
1.58k stars 87 forks source link

KeyError: 'text_projection' #81

Open shiyuleixia opened 7 months ago

shiyuleixia commented 7 months ago

How to solve this problem !!! Exception during processing !!! Traceback (most recent call last): File "/data/aigc/ComfyUI/custom_nodes/ComfyUI-SUPIR/nodes.py", line 291, in process clip_g = build_text_model_from_openai_state_dict(sd, cast_dtype=dtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/aigc/ComfyUI/custom_nodes/ComfyUI-SUPIR/nodes.py", line 52, in build_text_model_from_openai_state_dict embed_dim = state_dict["text_projection"].shape[1]


KeyError: 'text_projection'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/aigc/ComfyUI/execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/aigc/ComfyUI/execution.py", line 81, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/aigc/ComfyUI/execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/aigc/ComfyUI/custom_nodes/ComfyUI-SUPIR/nodes.py", line 294, in process
    raise Exception("Failed to load second clip model from SDXL checkpoint")
Exception: Failed to load second clip model from SDXL checkpoint

Prompt executed in 5.02 seconds
kijai commented 7 months ago

Which SDXL checkpoint do you have selected?

ghost commented 7 months ago

maybe your setting is fault. on the "SUPIR Upscale (Legacy)" node , "sdxl model" was not set correctly.