diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-02-19 09:31:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 09:31:06 +0000 |
commit | 75a508ab537b7e3ad96b45fb9f5ef1d23d5a6261 (patch) | |
tree | 51b29ea3b255fe43b0fe7560f9f7fdd23a475427 | |
parent | d99bd04b3f8c7753e31aa6dea6109785c4bb92c9 (diff) | |
parent | cfc9849f3f64977936769b6479d6b2231ecbfc5b (diff) | |
download | stable-diffusion-webui-gfx803-75a508ab537b7e3ad96b45fb9f5ef1d23d5a6261.tar.gz stable-diffusion-webui-gfx803-75a508ab537b7e3ad96b45fb9f5ef1d23d5a6261.tar.bz2 stable-diffusion-webui-gfx803-75a508ab537b7e3ad96b45fb9f5ef1d23d5a6261.zip |
Merge pull request #7430 from Einlar/6866-fix-hires-prompt-matrix
Fix prompt matrix #rows/#cols when using hires
-rw-r--r-- | scripts/prompt_matrix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/prompt_matrix.py b/scripts/prompt_matrix.py index 6340a7d9..b1c486d4 100644 --- a/scripts/prompt_matrix.py +++ b/scripts/prompt_matrix.py @@ -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, processed.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])
|