diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 14:54:04 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 14:54:04 +0000 |
commit | b1707553cf70d74fad08c62cfca5a2bdfee936b7 (patch) | |
tree | 2da7b9c59acd1f61a169f84f404ae8fe440ed79a /modules/images.py | |
parent | 003b60b94e42e21e9213b286b6a51a222db1076a (diff) | |
download | stable-diffusion-webui-gfx803-b1707553cf70d74fad08c62cfca5a2bdfee936b7.tar.gz stable-diffusion-webui-gfx803-b1707553cf70d74fad08c62cfca5a2bdfee936b7.tar.bz2 stable-diffusion-webui-gfx803-b1707553cf70d74fad08c62cfca5a2bdfee936b7.zip |
added resize seeds and variation seeds features
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py index 3399887d..064849d3 100644 --- a/modules/images.py +++ b/modules/images.py @@ -136,7 +136,7 @@ def draw_grid_annotations(im, width, height, hor_texts, ver_texts): color_active = (0, 0, 0)
color_inactive = (153, 153, 153)
- pad_left = width * 3 // 4 if len(ver_texts) > 0 else 0
+ pad_left = 0 if sum([sum([len(line.text) for line in lines]) for lines in ver_texts]) == 0 else width * 3 // 4
cols = im.width // width
rows = im.height // height
|