aboutsummaryrefslogtreecommitdiffstats
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-21 13:10:51 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-21 13:10:51 +0000
commitdf5706409386cc2e88718bd9101045587c39f8bb (patch)
tree7736df4b0be0f791b5f936e858ec1c1423ada571 /modules/txt2img.py
parent7d6b388d71e5854c48847c09b2dfed683b377027 (diff)
downloadstable-diffusion-webui-gfx803-df5706409386cc2e88718bd9101045587c39f8bb.tar.gz
stable-diffusion-webui-gfx803-df5706409386cc2e88718bd9101045587c39f8bb.tar.bz2
stable-diffusion-webui-gfx803-df5706409386cc2e88718bd9101045587c39f8bb.zip
do not load aesthetic clip model until it's needed
add refresh button for aesthetic embeddings add aesthetic params to images' infotext
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index 32ed1d8d..1761cfa2 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -36,9 +36,7 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
firstphase_height=firstphase_height if enable_hr else None,
)
- shared.aesthetic_clip.set_aesthetic_params(float(aesthetic_lr), float(aesthetic_weight), int(aesthetic_steps),
- aesthetic_imgs, aesthetic_slerp, aesthetic_imgs_text, aesthetic_slerp_angle,
- aesthetic_text_negative)
+ shared.aesthetic_clip.set_aesthetic_params(p, float(aesthetic_lr), float(aesthetic_weight), int(aesthetic_steps), aesthetic_imgs, aesthetic_slerp, aesthetic_imgs_text, aesthetic_slerp_angle, aesthetic_text_negative)
if cmd_opts.enable_console_prompts:
print(f"\ntxt2img: {prompt}", file=shared.progress_print_out)