Skip to content

Nodes loading ok but workflows not (SUPIR model loader v2 / SUPIR conditioner errors)  #108

Description

@GastonSan79

First at all, thanks for your work.
I'm completely lost here, the nodes load into comfyui ok, but loading the example workflow from the custom node subfolder gives the next error:

Error occurred when executing SUPIR_model_loader_v2:

Failed to load first clip model from SDXL checkpoint

  File "H:\AI\COMFY-PORTABLE\ComfyUI\execution.py", line 152, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "H:\AI\COMFY-PORTABLE\ComfyUI\execution.py", line 82, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "H:\AI\COMFY-PORTABLE\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 381, in new_func
    res_value = old_func(*final_args, **kwargs)
  File "H:\AI\COMFY-PORTABLE\ComfyUI\execution.py", line 75, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "H:\AI\COMFY-PORTABLE\ComfyUI\custom_nodes\ComfyUI-SUPIR\nodes_v2.py", line 925, in process
    raise Exception("Failed to load first clip model from SDXL checkpoint")

The loaded model is a SDXL.
If I replicate the old example workflow from the repository, the models load ok but at the SUPIR conditioner stage I get the error:

Error occurred when executing SUPIR_conditioner:

Cannot copy out of meta tensor; no data!

  File "H:\AI\COMFY-PORTABLE\ComfyUI\execution.py", line 152, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "H:\AI\COMFY-PORTABLE\ComfyUI\execution.py", line 82, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "H:\AI\COMFY-PORTABLE\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 381, in new_func
    res_value = old_func(*final_args, **kwargs)
  File "H:\AI\COMFY-PORTABLE\ComfyUI\execution.py", line 75, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "H:\AI\COMFY-PORTABLE\ComfyUI\custom_nodes\ComfyUI-SUPIR\nodes_v2.py", line 571, in condition
    SUPIR_model.conditioner.to(device)
  File "H:\AI\COMFY-PORTABLE\python_embeded\lib\site-packages\torch\nn\modules\module.py", line 1160, in to
    return self._apply(convert)
  File "H:\AI\COMFY-PORTABLE\python_embeded\lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
    module._apply(fn)
  File "H:\AI\COMFY-PORTABLE\python_embeded\lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
    module._apply(fn)
  File "H:\AI\COMFY-PORTABLE\python_embeded\lib\site-packages\torch\nn\modules\module.py", line 810, in _apply
    module._apply(fn)
  File "H:\AI\COMFY-PORTABLE\python_embeded\lib\site-packages\torch\nn\modules\module.py", line 833, in _apply
    param_applied = fn(param)
  File "H:\AI\COMFY-PORTABLE\python_embeded\lib\site-packages\torch\nn\modules\module.py", line 1158, in convert
    return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)

All the nodes are correctly connected.
Python version: 3.10.11 / ComfyUI Revision: 2021 [36f7face] | Released on '2024-02-26

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions