diff --git a/nodes/text_encoders/encoder_helpers.py b/nodes/text_encoders/encoder_helpers.py index e0fbf32..13e48f8 100644 --- a/nodes/text_encoders/encoder_helpers.py +++ b/nodes/text_encoders/encoder_helpers.py @@ -52,14 +52,8 @@ def encode_prompts_flux(clip, clip_l_positive, t5xxl_positive, clip_l_negative, negative_tokens["t5xxl"] = clip.tokenize(t5xxl_negative)["t5xxl"] return ( - clip.encode_from_tokens_scheduled( - positive_tokens, - add_dict={"guidance": guidance, } - ), - clip.encode_from_tokens_scheduled( - negative_tokens, - add_dict={"guidance": guidance, } - ) + clip.encode_from_tokens_scheduled(positive_tokens, add_dict={"guidance": guidance, }), + clip.encode_from_tokens_scheduled(negative_tokens, add_dict={"guidance": guidance, }) ) @@ -67,7 +61,7 @@ def encode_prompts_flux2(model, clip, prompt, lora_triggers, guidance): if clip is None: raise ValueError("ERROR: CLIP is required for text encoder") - tokens = clip.tokenize(f"{lora_triggers} {prompt}") + tokens = clip.tokenize(f"{lora_triggers}, {prompt}") conditioning = clip.encode_from_tokens_scheduled(tokens, add_dict={"guidance": guidance, }) guider = Guider_Basic(model) guider.set_conds(conditioning) diff --git a/nodes/workflow/flux2_workflow_settings.py b/nodes/workflow/flux2_workflow_settings.py index 597dd28..897f6df 100644 --- a/nodes/workflow/flux2_workflow_settings.py +++ b/nodes/workflow/flux2_workflow_settings.py @@ -49,7 +49,7 @@ class TT_Flux2WorkflowSettings: CATEGORY = "TenserTensor/Workflow/FLUX2" def get_settings(self, seed, steps, cfg, sampler_name, width, height, guidance): - scheduler = get_schedule(seed, width, height) + scheduler = get_schedule(steps, width, height) sampler = S.sampler_object(sampler_name) workflow_config = { diff --git a/pyproject.toml b/pyproject.toml index 0c5c5ca..a719772 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [project] name = "ComfyUI-TenserTensor" description = "A collection of custom nodes for ComfyUI that streamline common workflows. Includes all-in-one model loaders (checkpoint, LoRA, CLIP, VAE), GGUF quantized model support (Flux, Flux.2, SDXL), workflow settings nodes, latent factory (aspect ratio, megapixel, Flux/SDXL), context nodes, CLIP text encoders, KSamplers, VAE decoders (basic, tiled, two-pass), and post-production tools (brightness, contrast, LUT color grading, film grain, upscaler)." -version = "1.4.5" +version = "1.4.6" license = { file = "LICENSE" } dependencies = ["gguf"]