diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-28 21:21:54 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-28 21:21:54 +0000 |
commit | 791808c890fc2fc3417f827f8744765970b23f13 (patch) | |
tree | e22763e6aca2ff3f23362cc358d8ba3e18ba3c34 /modules/ui.py | |
parent | 43e273004bf876138550fe462f2bd9d5788e7d9a (diff) | |
download | stable-diffusion-webui-gfx803-791808c890fc2fc3417f827f8744765970b23f13.tar.gz stable-diffusion-webui-gfx803-791808c890fc2fc3417f827f8744765970b23f13.tar.bz2 stable-diffusion-webui-gfx803-791808c890fc2fc3417f827f8744765970b23f13.zip |
correctly list and display model names for #1261
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py index bf736b27..d51f7a08 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -872,8 +872,8 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo, run_modelmerger): gr.HTML(value="<p>A merger of the two checkpoints will be generated in your <b>/models</b> directory.</p>")
with gr.Row():
- ckpt_name_list = sorted([x.model_name for x in modules.sd_models.checkpoints_list.values()])
- primary_model_name = gr.Dropdown(ckpt_name_list, elem_id="modelmerger_primary_model_name", label="Primary Model Name")
+ ckpt_name_list = sorted([x.title for x in modules.sd_models.checkpoints_list.values()])
+ primary_model_name = gr.Dropdown(ckpt_name_list, elem_id="modelmerger_primary_model_name", label="Primary Model Name")
secondary_model_name = gr.Dropdown(ckpt_name_list, elem_id="modelmerger_secondary_model_name", label="Secondary Model Name")
interp_amount = gr.Slider(minimum=0.0, maximum=1.0, step=0.05, label='Interpolation Amount', value=0.3)
interp_method = gr.Radio(choices=["Weighted Sum", "Sigmoid", "Inverse Sigmoid"], value="Weighted Sum", label="Interpolation Method")
|