From 09e1bb83669fa51897a3d199c7aa20bd197eaeb7 Mon Sep 17 00:00:00 2001 From: ebolam Date: Tue, 1 Nov 2022 15:03:47 -0400 Subject: [PATCH] Add back in horde generation if statement --- aiserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiserver.py b/aiserver.py index fbd4689e..39544baa 100644 --- a/aiserver.py +++ b/aiserver.py @@ -9127,6 +9127,8 @@ def UI_2_generate_image(data): # Check if stable-diffusion-webui API option selected and use that if found. if koboldai_vars.img_gen_priority == 4: b64_data = text2img_api(", ".join(keys), art_guide = art_guide) + elif ((not koboldai_vars.hascuda or not os.path.exists("models/stable-diffusion-v1-4")) and koboldai_vars.img_gen_priority != 0) or koboldai_vars.img_gen_priority == 3: + b64_data = text2img_horde(", ".join(keys), art_guide = art_guide) else: if ((not koboldai_vars.hascuda or not os.path.exists("models/stable-diffusion-v1-4")) and koboldai_vars.img_gen_priority != 0) or koboldai_vars.img_gen_priority == 3: b64_data = text2img_horde(", ".join(keys), art_guide = art_guide)