From 8167c280210b3f933002a26b1999af79123137f3 Mon Sep 17 00:00:00 2001 From: Markus Schuettler Date: Wed, 29 Jan 2025 13:40:20 +0100 Subject: [PATCH] fix negative prompt for sd and disable for lcm Signed-off-by: Markus Schuettler --- WebUI/src/assets/js/store/imageGeneration.ts | 2 -- service/paint_biz.py | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/WebUI/src/assets/js/store/imageGeneration.ts b/WebUI/src/assets/js/store/imageGeneration.ts index b9f61297..16a89761 100644 --- a/WebUI/src/assets/js/store/imageGeneration.ts +++ b/WebUI/src/assets/js/store/imageGeneration.ts @@ -282,7 +282,6 @@ export const useImageGeneration = defineStore( 'resolution', 'seed', 'inferenceSteps', - 'negativePrompt', 'batchSize', 'imagePreview', 'safetyCheck', @@ -363,7 +362,6 @@ export const useImageGeneration = defineStore( 'resolution', 'seed', 'inferenceSteps', - 'negativePrompt', 'batchSize', 'imagePreview', 'safetyCheck', diff --git a/service/paint_biz.py b/service/paint_biz.py index 7458b410..40c92ea9 100644 --- a/service/paint_biz.py +++ b/service/paint_biz.py @@ -525,6 +525,7 @@ def text_to_image( generator=generator, num_inference_steps=params.inference_steps, guidance_scale=params.guidance_scale, + negative_prompt=params.negative_prompt, callback_on_step_end=__callback_on_step_end__, **custom_inputs, ).images[0]