diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-03-25 11:04:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 11:04:46 +0000 |
commit | aba5d639fb20df035243246cf5edb143eda94546 (patch) | |
tree | 0e505313ee867367fd166226b670f8e2f43ef4c3 | |
parent | d9b9bf78b3189a7f7bb62b16182958866856eaae (diff) | |
parent | 8179901f9cc3fe7d2d4b24edc8fe59275a1332f8 (diff) | |
download | stable-diffusion-webui-gfx803-aba5d639fb20df035243246cf5edb143eda94546.tar.gz stable-diffusion-webui-gfx803-aba5d639fb20df035243246cf5edb143eda94546.tar.bz2 stable-diffusion-webui-gfx803-aba5d639fb20df035243246cf5edb143eda94546.zip |
Merge pull request #8547 from vladmandic/image-size
disable pil checks
-rw-r--r-- | scripts/xyz_grid.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index 3551aca0..3895a795 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -515,6 +515,7 @@ class Script(scripts.Script): zs = process_axis(z_opt, z_values)
# this could be moved to common code, but unlikely to be ever triggered anywhere else
+ Image.MAX_IMAGE_PIXELS = None # disable check in Pillow and rely on check below to allow large custom image sizes
grid_mp = round(len(xs) * len(ys) * len(zs) * p.width * p.height / 1000000)
assert grid_mp < opts.img_max_size_mp, f'Error: Resulting grid would be too large ({grid_mp} MPixels) (max configured size is {opts.img_max_size_mp} MPixels)'
|