Skip to content
代码片段 群组 项目
未验证 提交 7e549468 编辑于 作者: AUTOMATIC1111's avatar AUTOMATIC1111 提交者: GitHub
浏览文件

Merge pull request #6285 from abextm/save-sampling-method

ui: save dropdown sampling method to the ui-config
No related branches found
No related tags found
无相关合并请求
...@@ -635,6 +635,7 @@ def create_sampler_and_steps_selection(choices, tabname): ...@@ -635,6 +635,7 @@ def create_sampler_and_steps_selection(choices, tabname):
if opts.samplers_in_dropdown: if opts.samplers_in_dropdown:
with FormRow(elem_id=f"sampler_selection_{tabname}"): 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 = 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) steps = gr.Slider(minimum=1, maximum=150, step=1, elem_id=f"{tabname}_steps", label="Sampling Steps", value=20)
else: else:
with FormGroup(elem_id=f"sampler_selection_{tabname}"): with FormGroup(elem_id=f"sampler_selection_{tabname}"):
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册