mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-13 03:48:48 +08:00
has_quoted_text -> boolean. remove unused dict entry
This commit is contained in:
parent
6e6065b793
commit
f23bac8108
@ -115,7 +115,7 @@ class HunyuanMixModeAPG:
|
|||||||
return {
|
return {
|
||||||
"required": {
|
"required": {
|
||||||
"model": ("MODEL", ),
|
"model": ("MODEL", ),
|
||||||
"has_quoted_text": ("HAS_QUOTED_TEXT", ),
|
"has_quoted_text": ("BOOLEAN", ),
|
||||||
|
|
||||||
"guidance_scale": ("FLOAT", {"default": 10.0, "min": 1.0, "max": 30.0, "step": 0.1}),
|
"guidance_scale": ("FLOAT", {"default": 10.0, "min": 1.0, "max": 30.0, "step": 0.1}),
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ class CLIPTextEncodeHunyuanDiTWithTextDetection:
|
|||||||
"text": ("STRING", {"multiline": True, "dynamicPrompts": True}),
|
"text": ("STRING", {"multiline": True, "dynamicPrompts": True}),
|
||||||
}}
|
}}
|
||||||
|
|
||||||
RETURN_TYPES = ("CONDITIONING", "HAS_QUOTED_TEXT")
|
RETURN_TYPES = ("CONDITIONING", "BOOLEAN")
|
||||||
RETURN_NAMES = ("conditioning", "has_quoted_text")
|
RETURN_NAMES = ("conditioning", "has_quoted_text")
|
||||||
FUNCTION = "encode"
|
FUNCTION = "encode"
|
||||||
|
|
||||||
@ -239,13 +239,7 @@ class CLIPTextEncodeHunyuanDiTWithTextDetection:
|
|||||||
|
|
||||||
conditioning = clip.encode_from_tokens_scheduled(tokens)
|
conditioning = clip.encode_from_tokens_scheduled(tokens)
|
||||||
|
|
||||||
c = []
|
return (conditioning, has_quoted_text)
|
||||||
for t in conditioning:
|
|
||||||
n = [t[0], t[1].copy()]
|
|
||||||
n[1]['has_quoted_text'] = has_quoted_text
|
|
||||||
c.append(n)
|
|
||||||
|
|
||||||
return (c, has_quoted_text)
|
|
||||||
|
|
||||||
class EmptyHunyuanLatentVideo:
|
class EmptyHunyuanLatentVideo:
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user