From 619668ccfeb10554ea5fc862787582d85f4bb623 Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Mon, 26 Sep 2022 08:00:11 +0100 Subject: [PATCH] Add options for exposed ddim sampler params ddim_eta & ddim_discretize --- modules/shared.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/shared.py b/modules/shared.py index bd030fe8..ce780e6e 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -220,6 +220,10 @@ options_templates.update(options_section(('ui', "User interface"), { "js_modal_lightbox_initialy_zoomed": OptionInfo(True, "Show images zoomed in by default in full page image viewer"), })) +options_templates.update(options_section(('sampler-params', "Sampler parameters"), { + "ddim_eta": OptionInfo(0.0, "img2img ddim eta", gr.Slider, {"minimum": 0.0, "maximum": 1.0, "step": 0.01}), + "ddim_discretize": OptionInfo('uniform', "img2img ddim discretize", gr.Radio, {"choices": ['uniform','quad']}), +})) class Options: data = None