diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-24 07:07:54 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-24 07:07:54 +0000 |
commit | 995ff5902fe0567e4cb2aa2e8ac3d554fca7b1ab (patch) | |
tree | e323e74874b95c48c5357b749cea0c454460ea7c | |
parent | b0211ff7f865da3ada6e97c1c86a368d0571ae70 (diff) | |
download | stable-diffusion-webui-gfx803-995ff5902fe0567e4cb2aa2e8ac3d554fca7b1ab.tar.gz stable-diffusion-webui-gfx803-995ff5902fe0567e4cb2aa2e8ac3d554fca7b1ab.tar.bz2 stable-diffusion-webui-gfx803-995ff5902fe0567e4cb2aa2e8ac3d554fca7b1ab.zip |
add infotext for use_old_scheduling option
-rw-r--r-- | modules/processing.py | 6 | ||||
-rw-r--r-- | modules/shared_options.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 066351c1..7dc931ba 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -437,6 +437,12 @@ class StableDiffusionProcessing: caches is a list with items described above.
"""
+ if shared.opts.use_old_scheduling:
+ old_schedules = prompt_parser.get_learned_conditioning_prompt_schedules(required_prompts, steps, hires_steps, False)
+ new_schedules = prompt_parser.get_learned_conditioning_prompt_schedules(required_prompts, steps, hires_steps, True)
+ if old_schedules != new_schedules:
+ self.extra_generation_params["Old prompt editing timelines"] = True
+
cached_params = self.cached_params(required_prompts, steps, extra_network_data, hires_steps, shared.opts.use_old_scheduling)
for cache in caches:
diff --git a/modules/shared_options.py b/modules/shared_options.py index d1389838..83f56314 100644 --- a/modules/shared_options.py +++ b/modules/shared_options.py @@ -203,7 +203,7 @@ options_templates.update(options_section(('compatibility', "Compatibility"), { "use_old_hires_fix_width_height": OptionInfo(False, "For hires fix, use width/height sliders to set final resolution rather than first pass (disables Upscale by, Resize width/height to)."),
"dont_fix_second_order_samplers_schedule": OptionInfo(False, "Do not fix prompt schedule for second order samplers."),
"hires_fix_use_firstpass_conds": OptionInfo(False, "For hires fix, calculate conds of second pass using extra networks of first pass."),
- "use_old_scheduling": OptionInfo(False, "Use old prompt where first pass and hires both used the same timeline, and < 1 meant relative and >= 1 meant absolute"),
+ "use_old_scheduling": OptionInfo(False, "Use old prompt editing timelines.", infotext="Old prompt editing timelines").info("For [red:green:N]; old: If N < 1, it's a fraction of steps (and hires fix uses range from 0 to 1), if N >= 1, it's an absolute number of steps; new: If N has a decimal point in it, it's a fraction of steps (and hires fix uses range from 1 to 2), othewrwise it's an absolute number of steps"),
}))
options_templates.update(options_section(('interrogate', "Interrogate"), {
|