aboutsummaryrefslogtreecommitdiffstats
path: root/modules/img2img.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/img2img.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/img2img.py')
-rw-r--r--modules/img2img.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/img2img.py b/modules/img2img.py
index bc7c66bc..eea5199b 100644
--- a/modules/img2img.py
+++ b/modules/img2img.py
@@ -109,10 +109,7 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro
inpainting_mask_invert=inpainting_mask_invert,
)
- 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 shared.cmd_opts.enable_console_prompts:
print(f"\nimg2img: {prompt}", file=shared.progress_print_out)