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
75a508ab
Unverified
Commit
75a508ab
authored
Feb 19, 2023
by
AUTOMATIC1111
Committed by
GitHub
Feb 19, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7430 from Einlar/6866-fix-hires-prompt-matrix
Fix prompt matrix #rows/#cols when using hires
parents
d99bd04b
cfc9849f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
prompt_matrix.py
scripts/prompt_matrix.py
+2
-2
No files found.
scripts/prompt_matrix.py
View file @
75a508ab
...
...
@@ -99,8 +99,8 @@ class Script(scripts.Script):
p
.
prompt_for_display
=
positive_prompt
processed
=
process_images
(
p
)
grid
=
images
.
image_grid
(
processed
.
images
,
p
.
batch_size
,
rows
=
1
<<
((
len
(
prompt_matrix_parts
)
-
1
)
//
2
))
grid
=
images
.
draw_prompt_matrix
(
grid
,
p
.
width
,
p
.
height
,
prompt_matrix_parts
,
margin_size
)
grid
=
images
.
image_grid
(
processed
.
images
,
p
.
batch_size
,
rows
=
1
<<
((
len
(
prompt_matrix_parts
)
-
1
)
//
2
))
grid
=
images
.
draw_prompt_matrix
(
grid
,
p
rocessed
.
images
[
0
]
.
width
,
processed
.
images
[
1
]
.
height
,
prompt_matrix_parts
,
margin_size
)
processed
.
images
.
insert
(
0
,
grid
)
processed
.
index_of_first_image
=
1
processed
.
infotexts
.
insert
(
0
,
processed
.
infotexts
[
0
])
...
...
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