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
bb0978ec
Commit
bb0978ec
authored
Jan 18, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix hires fix ui weirdness caused by gradio update
parent
a8322ad7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ui.py
modules/ui.py
+3
-3
style.css
style.css
+1
-1
No files found.
modules/ui.py
View file @
bb0978ec
...
@@ -638,7 +638,7 @@ def create_ui():
...
@@ -638,7 +638,7 @@ def create_ui():
seed
,
reuse_seed
,
subseed
,
reuse_subseed
,
subseed_strength
,
seed_resize_from_h
,
seed_resize_from_w
,
seed_checkbox
=
create_seed_inputs
(
'txt2img'
)
seed
,
reuse_seed
,
subseed
,
reuse_subseed
,
subseed_strength
,
seed_resize_from_h
,
seed_resize_from_w
,
seed_checkbox
=
create_seed_inputs
(
'txt2img'
)
elif
category
==
"checkboxes"
:
elif
category
==
"checkboxes"
:
with
FormRow
(
elem_id
=
"txt2img_checkboxes"
):
with
FormRow
(
elem_id
=
"txt2img_checkboxes"
,
variant
=
"compact"
):
restore_faces
=
gr
.
Checkbox
(
label
=
'Restore faces'
,
value
=
False
,
visible
=
len
(
shared
.
face_restorers
)
>
1
,
elem_id
=
"txt2img_restore_faces"
)
restore_faces
=
gr
.
Checkbox
(
label
=
'Restore faces'
,
value
=
False
,
visible
=
len
(
shared
.
face_restorers
)
>
1
,
elem_id
=
"txt2img_restore_faces"
)
tiling
=
gr
.
Checkbox
(
label
=
'Tiling'
,
value
=
False
,
elem_id
=
"txt2img_tiling"
)
tiling
=
gr
.
Checkbox
(
label
=
'Tiling'
,
value
=
False
,
elem_id
=
"txt2img_tiling"
)
enable_hr
=
gr
.
Checkbox
(
label
=
'Hires. fix'
,
value
=
False
,
elem_id
=
"txt2img_enable_hr"
)
enable_hr
=
gr
.
Checkbox
(
label
=
'Hires. fix'
,
value
=
False
,
elem_id
=
"txt2img_enable_hr"
)
...
@@ -646,12 +646,12 @@ def create_ui():
...
@@ -646,12 +646,12 @@ def create_ui():
elif
category
==
"hires_fix"
:
elif
category
==
"hires_fix"
:
with
FormGroup
(
visible
=
False
,
elem_id
=
"txt2img_hires_fix"
)
as
hr_options
:
with
FormGroup
(
visible
=
False
,
elem_id
=
"txt2img_hires_fix"
)
as
hr_options
:
with
FormRow
(
elem_id
=
"txt2img_hires_fix_row1"
):
with
FormRow
(
elem_id
=
"txt2img_hires_fix_row1"
,
variant
=
"compact"
):
hr_upscaler
=
gr
.
Dropdown
(
label
=
"Upscaler"
,
elem_id
=
"txt2img_hr_upscaler"
,
choices
=
[
*
shared
.
latent_upscale_modes
,
*
[
x
.
name
for
x
in
shared
.
sd_upscalers
]],
value
=
shared
.
latent_upscale_default_mode
)
hr_upscaler
=
gr
.
Dropdown
(
label
=
"Upscaler"
,
elem_id
=
"txt2img_hr_upscaler"
,
choices
=
[
*
shared
.
latent_upscale_modes
,
*
[
x
.
name
for
x
in
shared
.
sd_upscalers
]],
value
=
shared
.
latent_upscale_default_mode
)
hr_second_pass_steps
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
150
,
step
=
1
,
label
=
'Hires steps'
,
value
=
0
,
elem_id
=
"txt2img_hires_steps"
)
hr_second_pass_steps
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
150
,
step
=
1
,
label
=
'Hires steps'
,
value
=
0
,
elem_id
=
"txt2img_hires_steps"
)
denoising_strength
=
gr
.
Slider
(
minimum
=
0.0
,
maximum
=
1.0
,
step
=
0.01
,
label
=
'Denoising strength'
,
value
=
0.7
,
elem_id
=
"txt2img_denoising_strength"
)
denoising_strength
=
gr
.
Slider
(
minimum
=
0.0
,
maximum
=
1.0
,
step
=
0.01
,
label
=
'Denoising strength'
,
value
=
0.7
,
elem_id
=
"txt2img_denoising_strength"
)
with
FormRow
(
elem_id
=
"txt2img_hires_fix_row2"
):
with
FormRow
(
elem_id
=
"txt2img_hires_fix_row2"
,
variant
=
"compact"
):
hr_scale
=
gr
.
Slider
(
minimum
=
1.0
,
maximum
=
4.0
,
step
=
0.05
,
label
=
"Upscale by"
,
value
=
2.0
,
elem_id
=
"txt2img_hr_scale"
)
hr_scale
=
gr
.
Slider
(
minimum
=
1.0
,
maximum
=
4.0
,
step
=
0.05
,
label
=
"Upscale by"
,
value
=
2.0
,
elem_id
=
"txt2img_hr_scale"
)
hr_resize_x
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
2048
,
step
=
8
,
label
=
"Resize width to"
,
value
=
0
,
elem_id
=
"txt2img_hr_resize_x"
)
hr_resize_x
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
2048
,
step
=
8
,
label
=
"Resize width to"
,
value
=
0
,
elem_id
=
"txt2img_hr_resize_x"
)
hr_resize_y
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
2048
,
step
=
8
,
label
=
"Resize height to"
,
value
=
0
,
elem_id
=
"txt2img_hr_resize_y"
)
hr_resize_y
=
gr
.
Slider
(
minimum
=
0
,
maximum
=
2048
,
step
=
8
,
label
=
"Resize height to"
,
value
=
0
,
elem_id
=
"txt2img_hr_resize_y"
)
...
...
style.css
View file @
bb0978ec
...
@@ -686,7 +686,7 @@ footer {
...
@@ -686,7 +686,7 @@ footer {
#txt2img_checkboxes
,
#img2img_checkboxes
{
#txt2img_checkboxes
,
#img2img_checkboxes
{
margin-bottom
:
0.5em
;
margin-bottom
:
0.5em
;
}
}
#txt2img_checkboxes
>
div
>
div
,
#img2img_checkboxes
>
div
>
div
{
#txt2img_checkboxes
>
div
,
#img2img_checkboxes
>
div
{
flex
:
0
;
flex
:
0
;
white-space
:
nowrap
;
white-space
:
nowrap
;
min-width
:
auto
;
min-width
:
auto
;
...
...
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