Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
95636364
Unverified
Commit
95636364
authored
Oct 15, 2022
by
AUTOMATIC1111
Committed by
GitHub
Oct 15, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2663 from space-nuko/fix-xyplot-steps
Fix XY-plot steps if highres fix is enabled
parents
5207cba5
a8f7722e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
xy_grid.py
scripts/xy_grid.py
+4
-1
No files found.
scripts/xy_grid.py
View file @
95636364
...
@@ -12,7 +12,7 @@ import gradio as gr
...
@@ -12,7 +12,7 @@ import gradio as gr
from
modules
import
images
from
modules
import
images
from
modules.hypernetworks
import
hypernetwork
from
modules.hypernetworks
import
hypernetwork
from
modules.processing
import
process_images
,
Processed
,
get_correct_sampler
from
modules.processing
import
process_images
,
Processed
,
get_correct_sampler
,
StableDiffusionProcessingTxt2Img
from
modules.shared
import
opts
,
cmd_opts
,
state
from
modules.shared
import
opts
,
cmd_opts
,
state
import
modules.shared
as
shared
import
modules.shared
as
shared
import
modules.sd_samplers
import
modules.sd_samplers
...
@@ -354,6 +354,9 @@ class Script(scripts.Script):
...
@@ -354,6 +354,9 @@ class Script(scripts.Script):
else
:
else
:
total_steps
=
p
.
steps
*
len
(
xs
)
*
len
(
ys
)
total_steps
=
p
.
steps
*
len
(
xs
)
*
len
(
ys
)
if
isinstance
(
p
,
StableDiffusionProcessingTxt2Img
)
and
p
.
enable_hr
:
total_steps
*=
2
print
(
f
"X/Y plot will create {len(xs) * len(ys) * p.n_iter} images on a {len(xs)}x{len(ys)} grid. (Total steps to process: {total_steps * p.n_iter})"
)
print
(
f
"X/Y plot will create {len(xs) * len(ys) * p.n_iter} images on a {len(xs)}x{len(ys)} grid. (Total steps to process: {total_steps * p.n_iter})"
)
shared
.
total_tqdm
.
updateTotal
(
total_steps
*
p
.
n_iter
)
shared
.
total_tqdm
.
updateTotal
(
total_steps
*
p
.
n_iter
)
...
...
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