yolain / ComfyUI-Easy-Use

In order to make it easier to use the ComfyUI, I have made some optimizations and integrations to some commonly used nodes.
GNU General Public License v3.0
1.06k stars 72 forks source link

EasyControlNet++ 不支持 Flux ControlNet Union Pro #386

Open zyd232 opened 2 months ago

zyd232 commented 2 months ago

EasyControlNet++ 节点目前不支持 FLUX.1-dev-ControlNet-Union-Pro

报错如下:

# ComfyUI Error Report
## Error Details
- **Node Type:** easy controlnetLoader++
- **Exception Type:** Exception
- **Exception Message:** 'W:\Machine_Learning\ComfyUI\ComfyUI\models\controlnet\Flux.1\FLUX.1-dev-ControlNet-Union-Pro.safetensors' is not a valid ControlNet++ model.
## Stack Trace

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

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

  File "W:\Machine_Learning\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Easy-Use\py\easyNodes.py", line 2361, in controlnetApply
    control_net, = cn_adv_cls().load_controlnet_plusplus(control_net_name, union_type)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "W:\Machine_Learning\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\nodes_plusplus.py", line 49, in load_controlnet_plusplus
    controlnet = load_controlnetplusplus(controlnet_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "W:\Machine_Learning\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control_plusplus.py", line 361, in load_controlnetplusplus
    raise Exception(f"'{ckpt_path}' is not a valid ControlNet++ model.")

## System Information
- **ComfyUI Version:** v0.2.2-43-ge813abb
- **Arguments:** ComfyUI\main.py --windows-standalone-build --fast
- **OS:** nt
- **Python Version:** 3.11.6 (tags/v3.11.6:8b6ee5b, Oct  2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
- **Embedded Python:** true
- **PyTorch Version:** 2.4.1+cu124
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
  - **Type:** cuda
  - **VRAM Total:** 25756696576
  - **VRAM Free:** 18971306010
  - **Torch VRAM Total:** 5133828096
  - **Torch VRAM Free:** 130492442
yolain commented 2 months ago

别开柔和缩放权重试试,设为1