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
f57445f7
Commit
f57445f7
authored
May 01, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release_candidate' into dev
parents
74d249f6
67f5c2ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
javascript/ui.js
javascript/ui.js
+4
-0
modules/ui.py
modules/ui.py
+4
-1
No files found.
javascript/ui.js
View file @
f57445f7
...
@@ -208,6 +208,8 @@ function submit_img2img(){
...
@@ -208,6 +208,8 @@ function submit_img2img(){
}
}
function
restoreProgressTxt2img
(
x
){
function
restoreProgressTxt2img
(
x
){
showRestoreProgressButton
(
"
txt2img
"
,
false
)
id
=
localStorage
.
getItem
(
"
txt2img_task_id
"
)
id
=
localStorage
.
getItem
(
"
txt2img_task_id
"
)
if
(
id
)
{
if
(
id
)
{
...
@@ -219,6 +221,8 @@ function restoreProgressTxt2img(x){
...
@@ -219,6 +221,8 @@ function restoreProgressTxt2img(x){
return
[
id
]
return
[
id
]
}
}
function
restoreProgressImg2img
(
x
){
function
restoreProgressImg2img
(
x
){
showRestoreProgressButton
(
"
img2img
"
,
false
)
id
=
localStorage
.
getItem
(
"
img2img_task_id
"
)
id
=
localStorage
.
getItem
(
"
img2img_task_id
"
)
if
(
id
)
{
if
(
id
)
{
...
...
modules/ui.py
View file @
f57445f7
...
@@ -810,7 +810,10 @@ def create_ui():
...
@@ -810,7 +810,10 @@ def create_ui():
scale_by
.
release
(
**
on_change_args
)
scale_by
.
release
(
**
on_change_args
)
button_update_resize_to
.
click
(
**
on_change_args
)
button_update_resize_to
.
click
(
**
on_change_args
)
for
component
in
img2img_image_inputs
:
# the code below is meant to update the resolution label after the image in the image selection UI has changed.
# as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
# I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
for
component
in
[
init_img
,
sketch
]:
component
.
change
(
fn
=
lambda
:
None
,
_js
=
"updateImg2imgResizeToTextAfterChangingImage"
,
inputs
=
[],
outputs
=
[],
show_progress
=
False
)
component
.
change
(
fn
=
lambda
:
None
,
_js
=
"updateImg2imgResizeToTextAfterChangingImage"
,
inputs
=
[],
outputs
=
[],
show_progress
=
False
)
tab_scale_to
.
select
(
fn
=
lambda
:
0
,
inputs
=
[],
outputs
=
[
selected_scale_tab
])
tab_scale_to
.
select
(
fn
=
lambda
:
0
,
inputs
=
[],
outputs
=
[
selected_scale_tab
])
...
...
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