aboutsummaryrefslogtreecommitdiff
path: root/modules/shared_options.py
diff options
context:
space:
mode:
authordrhead <1313496+drhead@users.noreply.github.com>2023-11-29 17:40:23 -0500
committerGitHub <noreply@github.com>2023-11-29 17:40:23 -0500
commit588a52891dca4d030ca7028dd9c0b56022a68b57 (patch)
tree32c08d60daefcc9149c6d1aabe8c9f9a81dda9de /modules/shared_options.py
parentb25c126ccdbc4da22ade46597a9addf808998989 (diff)
Add options for zero terminal SNR
Diffstat (limited to 'modules/shared_options.py')
-rw-r--r--modules/shared_options.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared_options.py b/modules/shared_options.py
index 04e68a71..51596777 100644
--- a/modules/shared_options.py
+++ b/modules/shared_options.py
@@ -218,6 +218,7 @@ options_templates.update(options_section(('compatibility', "Compatibility", "sd"
"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 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"),
+ "use_downcasted_alpha_bar": OptionInfo(False, "Downcast model alphas_cumprod to fp16 before sampling. For reproducing old seeds.")
}))
options_templates.update(options_section(('interrogate', "Interrogate"), {
@@ -335,6 +336,7 @@ options_templates.update(options_section(('sampler-params', "Sampler parameters"
'uni_pc_skip_type': OptionInfo("time_uniform", "UniPC skip type", gr.Radio, {"choices": ["time_uniform", "time_quadratic", "logSNR"]}, infotext='UniPC skip type'),
'uni_pc_order': OptionInfo(3, "UniPC order", gr.Slider, {"minimum": 1, "maximum": 50, "step": 1}, infotext='UniPC order').info("must be < sampling steps"),
'uni_pc_lower_order_final': OptionInfo(True, "UniPC lower order final", infotext='UniPC lower order final'),
+ 'sd_noise_schedule': OptionInfo("Default", "Noise schedule for sampling", gr.Radio, {"choices": ["Default", "Zero Terminal SNR"]}, infotext="Noise schedule for sampling").info("for use with zero terminal SNR trained models")
}))
options_templates.update(options_section(('postprocessing', "Postprocessing", "postprocessing"), {