ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Found a bug. !!! Exception during processing !!! 't5xxl'

Open huasio opened this issue 1 year ago • 2 comments

Expected Behavior

image

Actual Behavior

image

Steps to Reproduce

image

Debug Logs

!!! Exception during processing !!! 't5xxl'
Traceback (most recent call last):
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\execution.py", line 327, 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:\Tools\StableDiffusion\ComfyUI-aki-v1.4\execution.py", line 202, 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:\Tools\StableDiffusion\ComfyUI-aki-v1.4\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 179, in efficientloader
    encode_prompts(positive, negative, token_normalization, weight_interpretation, clip, clip_skip,
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 80, in encode_prompts
    positive_encoded = bnk_adv_encode.AdvancedCLIPTextEncode().encode(clip, positive_prompt, token_normalization, weight_interpretation)[0]
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\custom_nodes\efficiency-nodes-comfyui\py\bnk_adv_encode.py", line 312, in encode
    embeddings_final, pooled = advanced_encode(clip, text, token_normalization, weight_interpretation, w_max=1.0,
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\custom_nodes\efficiency-nodes-comfyui\py\bnk_adv_encode.py", line 262, in advanced_encode
    return advanced_encode_from_tokens(tokenized['l'],
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\custom_nodes\efficiency-nodes-comfyui\py\bnk_adv_encode.py", line 183, in advanced_encode_from_tokens
    weighted_emb, pooled_base = encode_func(weighted_tokens)
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\custom_nodes\efficiency-nodes-comfyui\py\bnk_adv_encode.py", line 265, in <lambda>
    lambda x: (clip.encode_from_tokens({'l': x}), None),
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\comfy\sd.py", line 208, in encode_from_tokens
    o = self.cond_stage_model.encode_token_weights(tokens)
  File "D:\Tools\StableDiffusion\ComfyUI-aki-v1.4\comfy\text_encoders\flux.py", line 53, in encode_token_weights
    token_weight_pairs_t5 = token_weight_pairs["t5xxl"]
KeyError: 't5xxl'

Other

No response

huasio avatar Jan 08 '25 12:01 huasio

Not a bug, the efficient node can't load Flux since it's not a checkpoint and it needs Clip l and T5xxl text encoders (also, I think you are using the wrong VAE as well)

Check the example page here, you will find all the models and example workflows.

LukeG89 avatar Jan 08 '25 13:01 LukeG89

Not a bug, the efficient node can't load Flux since it's not a checkpoint and it needs Clip l and T5xxl text encoders (also, I think you are using the wrong VAE as well)

Check the example page here, you will find all the models and example workflows.

Thanks, I have now changed the usage plan.

huasio avatar Jan 09 '25 04:01 huasio