Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
7e549468
Unverified
Commit
7e549468
authored
Jan 04, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jan 04, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6285 from abextm/save-sampling-method
ui: save dropdown sampling method to the ui-config
parents
3e22e294
917b5bd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
ui.py
modules/ui.py
+1
-0
No files found.
modules/ui.py
View file @
7e549468
...
@@ -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}"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment