diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-27 16:08:02 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-27 16:08:02 +0000 |
commit | 654234ec56f92c5f480b611147453e669a7777bc (patch) | |
tree | 7c28620de5157dfd88665b2d08efdd0b9ae374fa /modules/shared.py | |
parent | 633867ecc6061c547dd62533dad2077fa0d6ac08 (diff) | |
parent | a69b71a37f1fd32a60fbd87beed13f4f280400bd (diff) | |
download | stable-diffusion-webui-gfx803-654234ec56f92c5f480b611147453e669a7777bc.tar.gz stable-diffusion-webui-gfx803-654234ec56f92c5f480b611147453e669a7777bc.tar.bz2 stable-diffusion-webui-gfx803-654234ec56f92c5f480b611147453e669a7777bc.zip |
Merge remote-tracking branch 'KohakuBlueleaf/custom-k-sched-settings' into dev
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index a5e7824a..364a5991 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -518,6 +518,10 @@ options_templates.update(options_section(('sampler-params', "Sampler parameters" 's_churn': OptionInfo(0.0, "sigma churn", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
's_tmin': OptionInfo(0.0, "sigma tmin", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
's_noise': OptionInfo(1.0, "sigma noise", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}),
+ 'k_sched_type': OptionInfo("Automatic", "scheduler type", gr.Dropdown, {"choices": ["Automatic", "karras", "exponential", "polyexponential"]}),
+ 'sigma_max': OptionInfo(14.6, "sigma max", gr.Number).info("the maximum noise strength for the scheduler. Set to 0 to use the same value which 'xxx karras' samplers use."),
+ 'sigma_min': OptionInfo(0.3, "sigma min", gr.Number).info("the minimum noise strength for the scheduler. Set to 0 to use the same value which 'xxx karras' samplers use."),
+ 'rho': OptionInfo(7.0, "rho", gr.Number).info("higher will make a more steep noise scheduler (decrease faster). default for karras is 7.0, for polyexponential is 1.0"),
'eta_noise_seed_delta': OptionInfo(0, "Eta noise seed delta", gr.Number, {"precision": 0}).info("ENSD; does not improve anything, just produces different results for ancestral samplers - only useful for reproducing images"),
'always_discard_next_to_last_sigma': OptionInfo(False, "Always discard next-to-last sigma").link("PR", "https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/6044"),
'uni_pc_variant': OptionInfo("bh1", "UniPC variant", gr.Radio, {"choices": ["bh1", "bh2", "vary_coeff"]}),
|