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

How to solve it? Can anyone help? #3726

Closed
muskcookie opened this issue Jun 14, 2024 · 3 comments
Closed

How to solve it? Can anyone help? #3726

muskcookie opened this issue Jun 14, 2024 · 3 comments

Comments

@muskcookie
Copy link

Error occurred when executing CLIPTextEncode:

'NoneType' object has no attribute 'tokenize'

File "/Users/mac/Downloads/comfyui/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mac/Downloads/comfyui/ComfyUI/execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mac/Downloads/comfyui/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mac/Downloads/comfyui/ComfyUI/nodes.py", line 57, in encode
tokens = clip.tokenize(text)
^^^^^^^^^^^^^

@DrWine
Copy link

DrWine commented Jun 14, 2024

I didnt solve it, but for some context, i got this error when i tried to use Stable diffusion 3.
image

@muskcookie
Copy link
Author

I didn't solve it, but for some context, i got this error when i tried to use Stable diffusion 3. . ![image](https://private-user-images.githubusercontent.com/74111418/339918848-bc3ff0c2-f831-4282-81d5-9404829f566d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6 IkpXVCJ9..1hehPxu H9Xh77mZSBxnsud2g4TwksvzFcUsblM7O74w)

What problem caused this error

@liusida
Copy link

liusida commented Jun 15, 2024

Are you trying to use the CLIP output from the Load Checkpoint like this:
image

No, it doesn't work. SD3 has its dedicated CLIP Loader called TripleCLIPLoader. You do this instead:
image

If you want to use my custom version of SD3 nodes, which I think is more understandable, at least I removed the unused CLIP output which caused your confusion, here is the link:
https://github.com/liusida/ComfyUI-SD3-nodes

image

Related to #3721

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

4 participants