kijai / ComfyUI-IC-Light

Using IC-LIght models in ComfyUI
Apache License 2.0
657 stars 32 forks source link

"Load and Apply IC-Light" is err.:" IC-Light: Could not patch calculate_weight" ,please help #53

Open maxstewm opened 2 weeks ago

maxstewm commented 2 weeks ago

!!! Exception during processing !!! IC-Light: Could not patch calculate_weight Traceback (most recent call last): File "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-IC-Light\nodes.py", line 81, in load lora.calculate_weight = calculate_weight_adjust_channel_new(lora.calculate_weight) ^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'comfy.lora' has no attribute 'calculate_weight'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 313, 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 "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 188, 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 "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 165, in map_node_over_list process_inputs(input_dict, i) File "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 154, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-IC-Light\nodes.py", line 83, in load raise Exception("IC-Light: Could not patch calculate_weight") Exception: IC-Light: Could not patch calculate_weight

Prompt executed in 7.19 seconds got prompt Failed to validate prompt for output 34:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 313, 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 "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 188, 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 "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 165, in map_node_over_list process_inputs(input_dict, i) File "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 154, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\maxste\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-IC-Light\nodes.py", line 83, in load raise Exception("IC-Light: Could not patch calculate_weight") Exception: IC-Light: Could not patch calculate_weight

Prompt executed in 3.84 seconds got prompt Failed to validate prompt for output 34:

I can't find the reason, need help

Python 3.12.4

kijai commented 2 weeks ago

Update ComfyUI.

Milor123 commented 2 weeks ago

@kijai Same problem after update your nodes, but it solved after of update ComfyUI, thanks ❤️

maxstewm commented 2 weeks ago

thanks @kijai , it solved after i update "update_comfyui_and_python_dependencies". and i Downgrade numpy to 1.26.4