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
e533ff61
Commit
e533ff61
authored
Nov 04, 2022
by
timntorres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lift extras generate button a la #4246.
parent
d98eacea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ui.py
modules/ui.py
+2
-2
No files found.
modules/ui.py
View file @
e533ff61
...
@@ -1052,6 +1052,8 @@ def create_ui(wrap_gradio_gpu_call):
...
@@ -1052,6 +1052,8 @@ def create_ui(wrap_gradio_gpu_call):
extras_batch_output_dir
=
gr
.
Textbox
(
label
=
"Output directory"
,
**
shared
.
hide_dirs
,
placeholder
=
"Leave blank to save images to the default path."
)
extras_batch_output_dir
=
gr
.
Textbox
(
label
=
"Output directory"
,
**
shared
.
hide_dirs
,
placeholder
=
"Leave blank to save images to the default path."
)
show_extras_results
=
gr
.
Checkbox
(
label
=
'Show result images'
,
value
=
True
)
show_extras_results
=
gr
.
Checkbox
(
label
=
'Show result images'
,
value
=
True
)
submit
=
gr
.
Button
(
'Generate'
,
elem_id
=
"extras_generate"
,
variant
=
'primary'
)
with
gr
.
Tabs
(
elem_id
=
"extras_resize_mode"
):
with
gr
.
Tabs
(
elem_id
=
"extras_resize_mode"
):
with
gr
.
TabItem
(
'Scale by'
):
with
gr
.
TabItem
(
'Scale by'
):
upscaling_resize
=
gr
.
Slider
(
minimum
=
1.0
,
maximum
=
8.0
,
step
=
0.05
,
label
=
"Resize"
,
value
=
4
)
upscaling_resize
=
gr
.
Slider
(
minimum
=
1.0
,
maximum
=
8.0
,
step
=
0.05
,
label
=
"Resize"
,
value
=
4
)
...
@@ -1079,8 +1081,6 @@ def create_ui(wrap_gradio_gpu_call):
...
@@ -1079,8 +1081,6 @@ def create_ui(wrap_gradio_gpu_call):
with
gr
.
Group
():
with
gr
.
Group
():
upscale_before_face_fix
=
gr
.
Checkbox
(
label
=
'Upscale Before Restoring Faces'
,
value
=
False
)
upscale_before_face_fix
=
gr
.
Checkbox
(
label
=
'Upscale Before Restoring Faces'
,
value
=
False
)
submit
=
gr
.
Button
(
'Generate'
,
elem_id
=
"extras_generate"
,
variant
=
'primary'
)
result_images
,
html_info_x
,
html_info
=
create_output_panel
(
"extras"
,
opts
.
outdir_extras_samples
)
result_images
,
html_info_x
,
html_info
=
create_output_panel
(
"extras"
,
opts
.
outdir_extras_samples
)
submit
.
click
(
submit
.
click
(
...
...
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