mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-02 23:33:28 -08:00
Use the real images size, not the process
- Use the width/height of the first image in processed.images - No more need for rounding in prompt_matrix
This commit is contained in:
parent
17b24e45e8
commit
5afd9e82c3
2 changed files with 4 additions and 4 deletions
|
|
@ -171,8 +171,8 @@ def draw_grid_annotations(im, width, height, hor_texts, ver_texts):
|
|||
|
||||
pad_left = 0 if sum([sum([len(line.text) for line in lines]) for lines in ver_texts]) == 0 else width * 3 // 4
|
||||
|
||||
cols = round(im.width / width)
|
||||
rows = round(im.height / height)
|
||||
cols = im.width // width
|
||||
rows = im.height // height
|
||||
|
||||
assert cols == len(hor_texts), f'bad number of horizontal texts: {len(hor_texts)}; must be {cols}'
|
||||
assert rows == len(ver_texts), f'bad number of vertical texts: {len(ver_texts)}; must be {rows}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue