EeroHeikkinen / ComfyUI-eesahesNodes

eesahe's ComfyUI Flux ControlNet Utils
50 stars 6 forks source link

FluxParams.__init__() got an unexpected keyword argument 'final_layer' #13

Closed OrvilleQ closed 2 weeks ago

OrvilleQ commented 2 weeks ago

Error occurred when executing InstantX Flux Union ControlNet Loader:

FluxParams.init() got an unexpected keyword argument 'final_layer'

File "D:\AIGC\Windows\ComfyUI-aki\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\AIGC\Windows\ComfyUI-aki\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\AIGC\Windows\ComfyUI-aki\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "D:\AIGC\Windows\ComfyUI-aki\custom_nodes\ComfyUI-eesahesNodes\nodes.py", line 99, in load_controlnet controlnet = load_controlnet(controlnet_path, weight_dtype) File "D:\AIGC\Windows\ComfyUI-aki\custom_nodes\ComfyUI-eesahesNodes\nodes.py", line 69, in load_controlnet return load_controlnet_flux_instantx(controlnet_data, InstantXControlNetFluxFormat2, weight_dtype) File "D:\AIGC\Windows\ComfyUI-aki\custom_nodes\ComfyUI-eesahesNodes\nodes.py", line 56, in load_controlnet_flux_instantx control_model = controlnet_class(operations=operations, device=device, dtype=dtype, config) File "D:\AIGC\Windows\ComfyUI-aki\custom_nodes\ComfyUI-eesahesNodes\controlnet\controlnet_instantx_format2.py", line 64, in init super().init(final_layer=False, dtype=dtype, device=device, operations=operations, kwargs) File "D:\AIGC\Windows\ComfyUI-aki\comfy\ldm\flux\model.py", line 44, in init params = FluxParams(kwargs)

image

The Union Controlnet model is downloaded from ComfyUI Manager's Model managent, Which should be the latest model.

OrvilleQ commented 2 weeks ago

Update to the latest ComfyUI version fix the issue.