Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'CLIP' object has no attribute 'encode_from_tokens_scheduled' #7

Open
zentst opened this issue Dec 25, 2024 · 0 comments
Open

'CLIP' object has no attribute 'encode_from_tokens_scheduled' #7

zentst opened this issue Dec 25, 2024 · 0 comments

Comments

@zentst
Copy link

zentst commented Dec 25, 2024

Issu 'CLIP' object has no attribute 'encode_from_tokens_scheduled' while runing "HunyuanDIT vs Kolors "workflow

ComfyUI Error Report

Error Details

  • Node ID: 26
  • Node Type: CLIPTextEncode
  • Exception Type: AttributeError
  • Exception Message: 'CLIP' object has no attribute 'encode_from_tokens_scheduled'

Stack Trace

  File "E:\ComfyUI-aki-v1.4\execution.py", line 328, 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 "E:\ComfyUI-aki-v1.4\execution.py", line 203, 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 "E:\ComfyUI-aki-v1.4\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "E:\ComfyUI-aki-v1.4\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "E:\ComfyUI-aki-v1.4\nodes.py", line 67, in encode
    return (clip.encode_from_tokens_scheduled(tokens), )

2024-12-25T18:42:12.976866 - To see the GUI go to: http://127.0.0.1:8188
2024-12-25T18:42:14.883003 - E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\webApp\lib/photoswipe-lightbox.esm.min.js2024-12-25T18:42:14.883003 - 
2024-12-25T18:42:15.056227 - E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\webApp\lib/pickr.min.js2024-12-25T18:42:15.056227 - 
2024-12-25T18:42:15.065259 - FETCH DATA from: E:\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-Manager\extension-node-map.json2024-12-25T18:42:15.065259 - 2024-12-25T18:42:15.076841 -  [DONE]2024-12-25T18:42:15.076841 - 
2024-12-25T18:42:15.086861 - E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\webApp\lib/photoswipe.min.css2024-12-25T18:42:15.086861 - 
2024-12-25T18:42:15.120582 - E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\webApp\lib/classic.min.css2024-12-25T18:42:15.120582 - 
2024-12-25T18:42:15.261026 - E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\webApp\lib/model-viewer.min.js2024-12-25T18:42:15.261026 - 
2024-12-25T18:42:15.263540 - E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\webApp\lib/juxtapose.min.js2024-12-25T18:42:15.263540 - 
2024-12-25T18:42:15.263540 - E:\ComfyUI-aki-v1.4\custom_nodes\comfyui-mixlab-nodes\webApp\lib/juxtapose.css2024-12-25T18:42:15.263540 - 
2024-12-25T18:42:16.356857 - ['anime_lora.safetensors', 'art_lora.safetensors', 'disney_lora.safetensors', 'furry_lora.safetensors', 'mjv6_lora.safetensors', 'realism_lora.safetensors', 'scenery_lora.safetensors']2024-12-25T18:42:16.356857 - 
2024-12-25T18:42:16.356857 - ['anime_lora.safetensors', 'art_lora.safetensors', 'disney_lora.safetensors', 'furry_lora.safetensors', 'mjv6_lora.safetensors', 'realism_lora.safetensors', 'scenery_lora.safetensors']2024-12-25T18:42:16.356857 - 
2024-12-25T18:42:20.235541 - got prompt
2024-12-25T18:42:20.354059 - Using xformers attention in VAE
2024-12-25T18:42:20.354059 - Using xformers attention in VAE
2024-12-25T18:42:20.422302 - Using xformers attention in VAE
2024-12-25T18:42:20.423302 - Using xformers attention in VAE
2024-12-25T18:42:21.834617 - HYDiT: clip missing 2 keys (394 extra)2024-12-25T18:42:21.834617 - 
2024-12-25T18:42:22.573758 - You are using the default legacy behaviour of the <class 'transformers.models.t5.tokenization_t5.T5Tokenizer'>. This is expected, and simply means that the `legacy` (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set `legacy=False`. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in https://github.com/huggingface/transformers/pull/24565
2024-12-25T18:42:31.540722 - !!! Exception during processing !!! 'CLIP' object has no attribute 'encode_from_tokens_scheduled'
2024-12-25T18:42:31.541905 - Traceback (most recent call last):
  File "E:\ComfyUI-aki-v1.4\execution.py", line 328, 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 "E:\ComfyUI-aki-v1.4\execution.py", line 203, 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 "E:\ComfyUI-aki-v1.4\execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "E:\ComfyUI-aki-v1.4\execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "E:\ComfyUI-aki-v1.4\nodes.py", line 67, in encode
    return (clip.encode_from_tokens_scheduled(tokens), )
AttributeError: 'CLIP' object has no attribute 'encode_from_tokens_scheduled'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant