diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-12-03 06:37:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 06:37:10 +0000 |
commit | c67d8bca4f1f40a39a1001fb990cad69e4610c7c (patch) | |
tree | 98ad72e87994c4112ff0766064898fec7ff4ca60 /modules | |
parent | 28c79b8f0529bd10b1b41a23c65866cf00d71901 (diff) | |
parent | be2e6de94a5d40bff6d65497fd5ebc275b389f3f (diff) | |
download | stable-diffusion-webui-gfx803-c67d8bca4f1f40a39a1001fb990cad69e4610c7c.tar.gz stable-diffusion-webui-gfx803-c67d8bca4f1f40a39a1001fb990cad69e4610c7c.tar.bz2 stable-diffusion-webui-gfx803-c67d8bca4f1f40a39a1001fb990cad69e4610c7c.zip |
Merge pull request #5304 from space-nuko/fix/clip-skip-application
Fix clip skip of 1 not being restored from prompts
Diffstat (limited to 'modules')
-rw-r--r-- | modules/generation_parameters_copypaste.py | 4 | ||||
-rw-r--r-- | modules/shared.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/modules/generation_parameters_copypaste.py b/modules/generation_parameters_copypaste.py index 01980dca..44fe1a6c 100644 --- a/modules/generation_parameters_copypaste.py +++ b/modules/generation_parameters_copypaste.py @@ -184,6 +184,10 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model else:
res[k] = v
+ # Missing CLIP skip means it was set to 1 (the default)
+ if "Clip skip" not in res:
+ res["Clip skip"] = "1"
+
return res
diff --git a/modules/shared.py b/modules/shared.py index c36ee211..b4ecc7ca 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -371,7 +371,7 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), { "enable_batch_seeds": OptionInfo(True, "Make K-diffusion samplers produce same images in a batch as when making a single image"),
"comma_padding_backtrack": OptionInfo(20, "Increase coherency by padding from the last comma within n tokens when using more than 75 tokens", gr.Slider, {"minimum": 0, "maximum": 74, "step": 1 }),
"filter_nsfw": OptionInfo(False, "Filter NSFW content"),
- 'CLIP_stop_at_last_layers': OptionInfo(1, "Stop At last layers of CLIP model", gr.Slider, {"minimum": 1, "maximum": 12, "step": 1}),
+ 'CLIP_stop_at_last_layers': OptionInfo(1, "Stop at last layers of CLIP model (CLIP skip)", gr.Slider, {"minimum": 1, "maximum": 12, "step": 1}),
"random_artist_categories": OptionInfo([], "Allowed categories for random artists selection when using the Roll button", gr.CheckboxGroup, {"choices": artist_db.categories()}),
}))
|