mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add back in horde generation if statement
This commit is contained in:
@@ -9127,6 +9127,8 @@ def UI_2_generate_image(data):
|
|||||||
# Check if stable-diffusion-webui API option selected and use that if found.
|
# Check if stable-diffusion-webui API option selected and use that if found.
|
||||||
if koboldai_vars.img_gen_priority == 4:
|
if koboldai_vars.img_gen_priority == 4:
|
||||||
b64_data = text2img_api(", ".join(keys), art_guide = art_guide)
|
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:
|
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:
|
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)
|
b64_data = text2img_horde(", ".join(keys), art_guide = art_guide)
|
||||||
|
Reference in New Issue
Block a user