Minor fix, monor code reformat
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
+1
-1
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user