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
50f63e22
Commit
50f63e22
authored
May 01, 2023
by
AUTOMATIC1111
Committed by
GitHub
May 01, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into js-misc-fixes
parents
c7143002
b463b8a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
javascript/ui.js
javascript/ui.js
+8
-2
modules/processing.py
modules/processing.py
+5
-2
modules/ui.py
modules/ui.py
+4
-1
scripts/xyz_grid.py
scripts/xyz_grid.py
+1
-1
No files found.
javascript/ui.js
View file @
50f63e22
...
...
@@ -208,17 +208,23 @@ function submit_img2img(){
}
function
restoreProgressTxt2img
(){
showRestoreProgressButton
(
"
txt2img
"
,
false
)
var
id
=
localStorage
.
getItem
(
"
txt2img_task_id
"
)
id
=
localStorage
.
getItem
(
"
txt2img_task_id
"
)
if
(
id
)
{
requestProgress
(
id
,
gradioApp
().
getElementById
(
'
txt2img_gallery_container
'
),
gradioApp
().
getElementById
(
'
txt2img_gallery
'
),
function
(){
showSubmitButtons
(
'
txt2img
'
,
true
)
},
null
,
0
)
}
return
[
id
]
return
id
}
function
restoreProgressImg2img
(){
showRestoreProgressButton
(
"
img2img
"
,
false
)
var
id
=
localStorage
.
getItem
(
"
img2img_task_id
"
)
if
(
id
)
{
...
...
@@ -227,7 +233,7 @@ function restoreProgressImg2img(){
},
null
,
0
)
}
return
[
id
]
return
id
}
...
...
modules/processing.py
View file @
50f63e22
...
...
@@ -498,6 +498,11 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
stored_opts
=
{
k
:
opts
.
data
[
k
]
for
k
in
p
.
override_settings
.
keys
()}
try
:
# if no checkpoint override or the override checkpoint can't be found, remove override entry and load opts checkpoint
if
sd_models
.
checkpoint_alisases
.
get
(
p
.
override_settings
.
get
(
'sd_model_checkpoint'
))
is
None
:
p
.
override_settings
.
pop
(
'sd_model_checkpoint'
,
None
)
sd_models
.
reload_model_weights
()
for
k
,
v
in
p
.
override_settings
.
items
():
setattr
(
opts
,
k
,
v
)
...
...
@@ -514,8 +519,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
if
p
.
override_settings_restore_afterwards
:
for
k
,
v
in
stored_opts
.
items
():
setattr
(
opts
,
k
,
v
)
if
k
==
'sd_model_checkpoint'
:
sd_models
.
reload_model_weights
()
if
k
==
'sd_vae'
:
sd_vae
.
reload_vae_weights
()
...
...
modules/ui.py
View file @
50f63e22
...
...
@@ -810,7 +810,10 @@ def create_ui():
scale_by
.
release
(
**
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
)
tab_scale_to
.
select
(
fn
=
lambda
:
0
,
inputs
=
[],
outputs
=
[
selected_scale_tab
])
...
...
scripts/xyz_grid.py
View file @
50f63e22
...
...
@@ -86,7 +86,7 @@ def apply_checkpoint(p, x, xs):
info
=
modules
.
sd_models
.
get_closet_checkpoint_match
(
x
)
if
info
is
None
:
raise
RuntimeError
(
f
"Unknown checkpoint: {x}"
)
modules
.
sd_models
.
reload_model_weights
(
shared
.
sd_model
,
info
)
p
.
override_settings
[
'sd_model_checkpoint'
]
=
info
.
hash
def
confirm_checkpoints
(
p
,
xs
):
...
...
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