Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
b1320d79
Commit
b1320d79
authored
Sep 25, 2022
by
DepFA
Committed by
AUTOMATIC1111
Sep 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply to all checkboxes and textboxes
parent
714dcda0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
modules/ui.py
modules/ui.py
+4
-6
No files found.
modules/ui.py
View file @
b1320d79
...
...
@@ -418,9 +418,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
with
gr
.
Row
():
restore_faces
=
gr
.
Checkbox
(
label
=
'Restore faces'
,
value
=
False
,
visible
=
len
(
shared
.
face_restorers
)
>
1
)
restore_faces
.
add_to_ui_config
=
True
tiling
=
gr
.
Checkbox
(
label
=
'Tiling'
,
value
=
False
)
tiling
.
add_to_ui_config
=
True
enable_hr
=
gr
.
Checkbox
(
label
=
'Highres. fix'
,
value
=
False
)
with
gr
.
Row
(
visible
=
False
)
as
hr_options
:
...
...
@@ -577,7 +575,6 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
with
gr
.
Row
():
inpaint_full_res
=
gr
.
Checkbox
(
label
=
'Inpaint at full resolution'
,
value
=
False
)
inpaint_full_res
.
add_to_ui_config
=
True
inpaint_full_res_padding
=
gr
.
Slider
(
label
=
'Inpaint at full resolution padding, pixels'
,
minimum
=
0
,
maximum
=
256
,
step
=
4
,
value
=
32
)
with
gr
.
TabItem
(
'Batch img2img'
,
id
=
'batch'
):
...
...
@@ -598,9 +595,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
with
gr
.
Row
():
restore_faces
=
gr
.
Checkbox
(
label
=
'Restore faces'
,
value
=
False
,
visible
=
len
(
shared
.
face_restorers
)
>
1
)
restore_faces
.
add_to_ui_config
=
True
tiling
=
gr
.
Checkbox
(
label
=
'Tiling'
,
value
=
False
)
tiling
.
add_to_ui_config
=
True
with
gr
.
Row
():
batch_count
=
gr
.
Slider
(
minimum
=
1
,
maximum
=
cmd_opts
.
max_batch_count
,
step
=
1
,
label
=
'Batch count'
,
value
=
1
)
...
...
@@ -1059,7 +1054,10 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
if
type
(
x
)
==
gr
.
Radio
:
apply_field
(
x
,
'value'
,
lambda
val
:
val
in
x
.
choices
)
if
type
(
x
)
==
gr
.
Checkbox
and
getattr
(
x
,
'add_to_ui_config'
,
False
):
if
type
(
x
)
==
gr
.
Checkbox
:
apply_field
(
x
,
'value'
)
if
type
(
x
)
==
gr
.
Textbox
:
apply_field
(
x
,
'value'
)
visit
(
txt2img_interface
,
loadsave
,
"txt2img"
)
...
...
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