diff options
author | Bernard Maltais <bmaltais@gmail.com> | 2022-09-28 11:07:19 +0000 |
---|---|---|
committer | Bernard Maltais <bmaltais@gmail.com> | 2022-09-28 11:07:19 +0000 |
commit | c3bcc7e9fc0487ed4f7fe50a977e256346a4600a (patch) | |
tree | dc10b905ff3b19942e5bdd599b44c446ae0788dc | |
parent | 2ab64ec81a270c516816b5035860361ee145b9db (diff) | |
download | stable-diffusion-webui-gfx803-c3bcc7e9fc0487ed4f7fe50a977e256346a4600a.tar.gz stable-diffusion-webui-gfx803-c3bcc7e9fc0487ed4f7fe50a977e256346a4600a.tar.bz2 stable-diffusion-webui-gfx803-c3bcc7e9fc0487ed4f7fe50a977e256346a4600a.zip |
Switch active checkpoint selection to dropdown
- Provides a better user experience
- Better suited to variable list of options
- Keep the UI "stable" as list contract or expand
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py index 2502fe2d..798a6f31 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -190,7 +190,7 @@ options_templates.update(options_section(('system', "System"), { }))
options_templates.update(options_section(('sd', "Stable Diffusion"), {
- "sd_model_checkpoint": OptionInfo(None, "Stable Diffusion checkpoint", gr.Radio, lambda: {"choices": [x.title for x in modules.sd_models.checkpoints_list.values()]}),
+ "sd_model_checkpoint": OptionInfo(None, "Stable Diffusion checkpoint", gr.Dropdown, lambda: {"choices": sorted([x.title for x in modules.sd_models.checkpoints_list.values()])}),
"img2img_color_correction": OptionInfo(False, "Apply color correction to img2img results to match original colors."),
"save_images_before_color_correction": OptionInfo(False, "Save a copy of image before applying color correction to img2img results"),
"img2img_fix_steps": OptionInfo(False, "With img2img, do exactly the amount of steps the slider specifies (normally you'd do less with less denoising)."),
|