From 2b62c6eace8619c83fd8d4934e5f4e2b7b462026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20=20Sk=C3=B6ld?= Date: Fri, 17 May 2024 17:44:20 +0200 Subject: [PATCH] Fixed text encode --- src/lora_tester.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lora_tester.py b/src/lora_tester.py index df1e409..81e674c 100644 --- a/src/lora_tester.py +++ b/src/lora_tester.py @@ -70,14 +70,14 @@ class LoraTestNode: if full_lora_path: modified_model, modified_clip = lora_loader.load_lora(model, clip, full_lora_path, lora_strength, lora_strength) - positive_prompt = text_encode.encode(modified_clip, width, height, 0, 0, width, height, positive, positive)[0] - negative_prompt = text_encode.encode(modified_clip, width, height, 0, 0, width, height, negative, negative)[0] + positive_prompt = text_encode.encode(modified_clip, positive)[0] + negative_prompt = text_encode.encode(modified_clip, negative)[0] # Sampling samples = k_sampler_node.sample(modified_model, seed, steps, cfg, sampler_name, scheduler, positive_prompt, negative_prompt, latent_image, denoise)[0] else: - positive_prompt = text_encode.encode(clip, width, height, 0, 0, width, height, positive, positive)[0] - negative_prompt = text_encode.encode(clip, width, height, 0, 0, width, height, negative, negative)[0] + positive_prompt = text_encode.encode(clip, positive)[0] + negative_prompt = text_encode.encode(clip, negative)[0] # Sampling samples = k_sampler_node.sample(model, seed, steps, cfg, sampler_name, scheduler, positive_prompt, negative_prompt, latent_image, denoise)[0]