mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-19 02:24:27 +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):
|
def encode(self, clip, text):
|
||||||
tokens = clip.tokenize(text)
|
tokens = clip.tokenize(text)
|
||||||
output = clip.encode_from_tokens(tokens, return_pooled=True, return_dict=True)
|
cond, pooled = clip.encode_from_tokens(tokens, return_pooled=True)
|
||||||
cond = output.pop("cond")
|
return ([[cond, {"pooled_output": pooled}]], )
|
||||||
return ([[cond, output]], )
|
|
||||||
|
|
||||||
class ConditioningCombine:
|
class ConditioningCombine:
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user