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
656437e0
Commit
656437e0
authored
Nov 06, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix img2img_tabs error
parent
6ad666e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/ui.py
modules/ui.py
+10
-10
No files found.
modules/ui.py
View file @
656437e0
...
...
@@ -689,19 +689,19 @@ def create_ui():
with
gr
.
Column
(
scale
=
4
):
inpaint_full_res_padding
=
gr
.
Slider
(
label
=
'Only masked padding, pixels'
,
minimum
=
0
,
maximum
=
256
,
step
=
4
,
value
=
32
,
elem_id
=
"img2img_inpaint_full_res_padding"
)
def
select_img2img_tab
(
tab
):
return
gr
.
update
(
visible
=
tab
in
[
2
,
3
,
4
]),
gr
.
update
(
visible
=
tab
==
3
),
for
i
,
elem
in
enumerate
(
img2img_tabs
):
elem
.
select
(
fn
=
lambda
tab
=
i
:
select_img2img_tab
(
tab
),
inputs
=
[],
outputs
=
[
inpaint_controls
,
mask_alpha
],
)
if
category
not
in
{
"accordions"
}:
scripts
.
scripts_img2img
.
setup_ui_for_section
(
category
)
def
select_img2img_tab
(
tab
):
return
gr
.
update
(
visible
=
tab
in
[
2
,
3
,
4
]),
gr
.
update
(
visible
=
tab
==
3
),
for
i
,
elem
in
enumerate
(
img2img_tabs
):
elem
.
select
(
fn
=
lambda
tab
=
i
:
select_img2img_tab
(
tab
),
inputs
=
[],
outputs
=
[
inpaint_controls
,
mask_alpha
],
)
img2img_gallery
,
generation_info
,
html_info
,
html_log
=
create_output_panel
(
"img2img"
,
opts
.
outdir_img2img_samples
,
toprow
)
img2img_args
=
dict
(
...
...
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