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
a8f7722e
Commit
a8f7722e
authored
Oct 14, 2022
by
space-nuko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix XY-plot steps if highres fix is enabled
parent
4dc42650
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
scripts/xy_grid.py
scripts/xy_grid.py
+4
-1
No files found.
scripts/xy_grid.py
View file @
a8f7722e
...
...
@@ -12,7 +12,7 @@ import gradio as gr
from
modules
import
images
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
import
modules.shared
as
shared
import
modules.sd_samplers
...
...
@@ -354,6 +354,9 @@ class Script(scripts.Script):
else
:
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})"
)
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