typeerror 176 instantx flux union controlnet loader
I was using Flux Schnell FP8, but keep getting the following error:
InstantX Flux Union ControlNet Loader
FluxParams.init() missing 2 required positional arguments: 'out_channels' and 'patch_size'
Following report from terminal:
got prompt
Failed to validate prompt for output 87:
- (prompt):
- Required input is missing: images
- SaveImage 87:
- Required input is missing: images
Output will be ignored
WARNING: PlaySound.IS_CHANGED() missing 1 required positional argument: 'self'
!!! Exception during processing !!! FluxParams.init() missing 2 required positional arguments: 'out_channels' and 'patch_size'
Traceback (most recent call last):
File "D:\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:\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:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-eesahesNodes\nodes.py", line 99, in load_controlnet
controlnet = load_controlnet(controlnet_path, weight_dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-eesahesNodes\nodes.py", line 69, in load_controlnet
return load_controlnet_flux_instantx(controlnet_data, InstantXControlNetFluxFormat2, weight_dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI_windows_portable\ComfyUI\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:\ComfyUI_windows_portable\ComfyUI\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:\ComfyUI_windows_portable\ComfyUI\comfy\ldm\flux\model.py", line 46, in init
params = FluxParams(**kwargs)
^^^^^^^^^^^^^^^^^^^^ - Required input is missing: images
TypeError: FluxParams.init() missing 2 required positional arguments: 'out_channels' and 'patch_size'
Prompt executed in 1.26 seconds
Anyone experienced this and found a solution?
I have the same error using Flux.1-dev-Controlnet-Union-Pro and Flux1-dev-Q4_K_S.GGUF
The same error here.
Absolutely the same here.:
InstantX Flux Union ControlNet Loader throws error
"FluxParams.init() missing 2 required positional arguments: 'out_channels' and 'patch_size'"
024-12-04T01:15:33.927801 - got prompt
2024-12-04T01:15:34.230731 - Using pytorch attention in VAE
2024-12-04T01:15:34.231731 - Using pytorch attention in VAE
2024-12-04T01:15:34.736948 - model_path is G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\lllyasviel/Annotators\body_pose_model.pth2024-12-04T01:15:34.736948 -
2024-12-04T01:15:34.736948 - model_path is G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\lllyasviel/Annotators\hand_pose_model.pth2024-12-04T01:15:34.736948 -
2024-12-04T01:15:34.736948 - model_path is G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\lllyasviel/Annotators\facenet.pth2024-12-04T01:15:34.738117 -
2024-12-04T01:15:38.644922 - model_path is G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\LiheYoung/Depth-Anything\checkpoints\depth_anything_vitl14.pth2024-12-04T01:15:38.644922 -
2024-12-04T01:15:38.653645 - using MLP layer as FFN
2024-12-04T01:15:44.754505 - model weight dtype torch.float8_e4m3fn, manual cast: torch.bfloat16
2024-12-04T01:15:44.769207 - model_type FLUX
2024-12-04T01:16:23.475582 - !!! Exception during processing !!! FluxParams.init() missing 2 required positional arguments: 'out_channels' and 'patch_size'
2024-12-04T01:16:23.476583 - Traceback (most recent call last):
File "G:\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 "G:\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 "G:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-eesahesNodes\nodes.py", line 99, in load_controlnet
controlnet = load_controlnet(controlnet_path, weight_dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-eesahesNodes\nodes.py", line 69, in load_controlnet
return load_controlnet_flux_instantx(controlnet_data, InstantXControlNetFluxFormat2, weight_dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\ComfyUI_windows_portable\ComfyUI\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 "G:\ComfyUI_windows_portable\ComfyUI\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 "G:\ComfyUI_windows_portable\ComfyUI\comfy\ldm\flux\model.py", line 46, in init
params = FluxParams(**kwargs)
^^^^^^^^^^^^^^^^^^^^
TypeError: FluxParams.init() missing 2 required positional arguments: 'out_channels' and 'patch_size'
2024-12-04T01:16:23.477582 - Prompt executed in 49.44 seconds
I also have the same error, anyone has solution?