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
175baaac
Commit
175baaac
authored
Sep 26, 2022
by
DepFA
Committed by
AUTOMATIC1111
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xy_grid - Show blank cells when grid is incomplete
parent
c0b1177a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
xy_grid.py
scripts/xy_grid.py
+5
-1
No files found.
scripts/xy_grid.py
View file @
175baaac
...
@@ -2,6 +2,7 @@ from collections import namedtuple
...
@@ -2,6 +2,7 @@ from collections import namedtuple
from
copy
import
copy
from
copy
import
copy
import
random
import
random
from
PIL
import
Image
import
numpy
as
np
import
numpy
as
np
import
modules.scripts
as
scripts
import
modules.scripts
as
scripts
...
@@ -108,7 +109,10 @@ def draw_xy_grid(p, xs, ys, x_labels, y_labels, cell, draw_legend):
...
@@ -108,7 +109,10 @@ def draw_xy_grid(p, xs, ys, x_labels, y_labels, cell, draw_legend):
if
first_pocessed
is
None
:
if
first_pocessed
is
None
:
first_pocessed
=
processed
first_pocessed
=
processed
res
.
append
(
processed
.
images
[
0
])
try
:
res
.
append
(
processed
.
images
[
0
])
except
:
res
.
append
(
Image
.
new
(
res
[
0
]
.
mode
,
res
[
0
]
.
size
))
grid
=
images
.
image_grid
(
res
,
rows
=
len
(
ys
))
grid
=
images
.
image_grid
(
res
,
rows
=
len
(
ys
))
if
draw_legend
:
if
draw_legend
:
...
...
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