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
3694379f
Commit
3694379f
authored
May 18, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework #8863 to work with all img2img tabs
parent
973ae873
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
modules/ui.py
modules/ui.py
+8
-2
style.css
style.css
+2
-2
No files found.
modules/ui.py
View file @
3694379f
...
@@ -954,6 +954,14 @@ def create_ui():
...
@@ -954,6 +954,14 @@ def create_ui():
res_switch_btn
.
click
(
fn
=
None
,
_js
=
"function(){switchWidthHeight('img2img')}"
,
inputs
=
None
,
outputs
=
None
,
show_progress
=
False
)
res_switch_btn
.
click
(
fn
=
None
,
_js
=
"function(){switchWidthHeight('img2img')}"
,
inputs
=
None
,
outputs
=
None
,
show_progress
=
False
)
detect_image_size_btn
.
click
(
fn
=
lambda
w
,
h
,
_
:
(
w
or
gr
.
update
(),
h
or
gr
.
update
()),
_js
=
"currentImg2imgSourceResolution"
,
inputs
=
[
dummy_component
,
dummy_component
,
dummy_component
],
outputs
=
[
width
,
height
],
show_progress
=
False
,
)
restore_progress_button
.
click
(
restore_progress_button
.
click
(
fn
=
progress
.
restore_progress
,
fn
=
progress
.
restore_progress
,
_js
=
"restoreProgressImg2img"
,
_js
=
"restoreProgressImg2img"
,
...
@@ -967,8 +975,6 @@ def create_ui():
...
@@ -967,8 +975,6 @@ def create_ui():
show_progress
=
False
,
show_progress
=
False
,
)
)
detect_image_size_btn
.
click
(
lambda
i
,
w
,
h
:
i
.
size
if
i
is
not
None
else
(
w
,
h
),
inputs
=
[
init_img
,
width
,
height
],
outputs
=
[
width
,
height
])
img2img_interrogate
.
click
(
img2img_interrogate
.
click
(
fn
=
lambda
*
args
:
process_interrogate
(
interrogate
,
*
args
),
fn
=
lambda
*
args
:
process_interrogate
(
interrogate
,
*
args
),
**
interrogate_args
,
**
interrogate_args
,
...
...
style.css
View file @
3694379f
...
@@ -320,8 +320,8 @@ button.custom-button{
...
@@ -320,8 +320,8 @@ button.custom-button{
div
.dimensions-tools
{
div
.dimensions-tools
{
min-width
:
0
!important
;
min-width
:
0
!important
;
max-width
:
fit-content
;
max-width
:
fit-content
;
flex-direction
:
row
;
flex-direction
:
column
;
align
-content
:
center
;
place
-content
:
center
;
}
}
div
#extras_scale_to_tab
div
.form
{
div
#extras_scale_to_tab
div
.form
{
...
...
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