Skip to content

TAEs stopped working #11870

@10902940129041

Description

@10902940129041

Custom Node Testing

Expected Behavior

TAE should load in Load VAE for decoding and encoding

Actual Behavior

UnboundLocalError: cannot access local variable 'metadata' where it is not associated with a value

Steps to Reproduce

Load VAE: taef1/taesd/taesdxl/taesd3

Debug Logs

!!! Exception during processing !!! cannot access local variable 'metadata' where it is not associated with a value
Traceback (most recent call last):
  File "/content/ComfyUI/execution.py", line 518, 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, v3_data=v3_data)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/ComfyUI/execution.py", line 329, 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, v3_data=v3_data)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/ComfyUI/execution.py", line 303, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "/content/ComfyUI/execution.py", line 291, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "/content/ComfyUI/custom_nodes/ComfyUI-KJNodes/nodes/nodes.py", line 2410, in load_vae
    vae = VAE(sd=sd, device=device, dtype=dtype, metadata=metadata)
                                                          ^^^^^^^^
UnboundLocalError: cannot access local variable 'metadata' where it is not associated with a value

Other

Due to #11846

Metadata

Metadata

Assignees

No one assigned

    Labels

    Custom Nodes BugBugs caused by downstream custom nodes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions