diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-04 06:10:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 06:10:25 +0000 |
commit | 7e549468b3d01e6cdf6d07d00c2719c1a5787517 (patch) | |
tree | 3ac2f55e9fde7f75913129dae6284d9b7adf1d59 | |
parent | 3e22e294135ed0327ce9d9738655ff03c53df3c0 (diff) | |
parent | 917b5bd8d0cd47c9dc241c1852ccd440a8c61668 (diff) | |
download | stable-diffusion-webui-gfx803-7e549468b3d01e6cdf6d07d00c2719c1a5787517.tar.gz stable-diffusion-webui-gfx803-7e549468b3d01e6cdf6d07d00c2719c1a5787517.tar.bz2 stable-diffusion-webui-gfx803-7e549468b3d01e6cdf6d07d00c2719c1a5787517.zip |
Merge pull request #6285 from abextm/save-sampling-method
ui: save dropdown sampling method to the ui-config
-rw-r--r-- | modules/ui.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py index d941cb5f..bfc93634 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -635,6 +635,7 @@ def create_sampler_and_steps_selection(choices, tabname): if opts.samplers_in_dropdown:
with FormRow(elem_id=f"sampler_selection_{tabname}"):
sampler_index = gr.Dropdown(label='Sampling method', elem_id=f"{tabname}_sampling", choices=[x.name for x in choices], value=choices[0].name, type="index")
+ sampler_index.save_to_config = True
steps = gr.Slider(minimum=1, maximum=150, step=1, elem_id=f"{tabname}_steps", label="Sampling Steps", value=20)
else:
with FormGroup(elem_id=f"sampler_selection_{tabname}"):
|