From 23055b21ee59eeea48a8b5696ad04c6fb8bc38f8 Mon Sep 17 00:00:00 2001 From: SodaPrettyCold <139355831+SodaPrettyCold@users.noreply.github.com> Date: Sat, 5 Aug 2023 07:20:28 +0800 Subject: [PATCH] [Bug fix] Remove html tags form the Prompt sent to Stable Diffusion (#3151) --- extensions/sd_api_pictures/script.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/sd_api_pictures/script.py b/extensions/sd_api_pictures/script.py index 88a0d940..e33367d4 100644 --- a/extensions/sd_api_pictures/script.py +++ b/extensions/sd_api_pictures/script.py @@ -133,6 +133,9 @@ def get_SD_pictures(description, character): if params['manage_VRAM']: give_VRAM_priority('SD') + description = re.sub('', ' ', description) + description = f"({description}:1)" + payload = { "prompt": params['prompt_prefix'] + description, "seed": params['seed'],