mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 20:57:09 +08:00
Update nodes.py
This commit is contained in:
parent
4095872d6e
commit
a4a36cb1c7
5
nodes.py
5
nodes.py
@ -55,9 +55,8 @@ class CLIPTextEncode:
|
||||
|
||||
def encode(self, clip, text):
|
||||
tokens = clip.tokenize(text)
|
||||
output = clip.encode_from_tokens(tokens, return_pooled=True, return_dict=True)
|
||||
cond = output.pop("cond")
|
||||
return ([[cond, output]], )
|
||||
cond, pooled = clip.encode_from_tokens(tokens, return_pooled=True)
|
||||
return ([[cond, {"pooled_output": pooled}]], )
|
||||
|
||||
class ConditioningCombine:
|
||||
@classmethod
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user