ERROR: controlnet file is invalid and does not contain a valid controlnet model.

#4
by badraymen - opened

ComfyUI Error Report

Error Details

  • Node ID: 57
  • Node Type: ControlNetLoader
  • Exception Type: RuntimeError
  • Exception Message: ERROR: controlnet file is invalid and does not contain a valid controlnet model.

Stack Trace

  File "F:\Soft and Tools\Soft and Tools\Ai\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 510, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "F:\Soft and Tools\Soft and Tools\Ai\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 324, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "F:\Soft and Tools\Soft and Tools\Ai\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 298, in _async_map_node_over_list
    await process_inputs(input_dict, i)

  File "F:\Soft and Tools\Soft and Tools\Ai\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 286, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^

  File "F:\Soft and Tools\Soft and Tools\Ai\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\nodes.py", line 802, in load_controlnet
    raise RuntimeError("ERROR: controlnet file is invalid and does not contain a valid controlnet model.")

System Information

  • ComfyUI Version: 0.3.75
  • Arguments: ComfyUI\main.py --windows-standalone-build
  • OS: nt
  • Python Version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
  • Embedded Python: true
  • PyTorch Version: 2.9.1+cu128

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 25756696576
    • VRAM Free: 24108859392
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

same problem for me

what workflow are you using?

facing same problem

Alibaba-PAI org

Sorry about that — this model weight hasn’t been officially supported by ComfyUI yet, and I’m not sure whether the official team will add support. For now, it only works when run through Python code.

wait for comfyui

Sorry about that — this model weight hasn’t been officially supported by ComfyUI yet, and I’m not sure whether the official team will add support. For now, it only works when run through Python code.

Thank you for your response and your time. I commend you on your tremendous effort and quick response to the community's needs.

Sign up or log in to comment