diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-17 20:18:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 20:18:56 +0000 |
commit | 04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce (patch) | |
tree | 1cb30a63099a69f678d4901b495203b765a6df59 /modules/masking.py | |
parent | 7201d940a4fe664beb9662fadbeade4ee1d788f7 (diff) | |
parent | b397f63e00bbfbe9087d80abb457aa9a593b181b (diff) | |
download | stable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.tar.gz stable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.tar.bz2 stable-diffusion-webui-gfx803-04b4508a66de58c9f3a422fdcad4dd2ec3ad39ce.zip |
Merge branch 'dev' into improve-frontend-responsiveness
Diffstat (limited to 'modules/masking.py')
-rw-r--r-- | modules/masking.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/masking.py b/modules/masking.py index a5c4d2da..be9f84c7 100644 --- a/modules/masking.py +++ b/modules/masking.py @@ -4,7 +4,7 @@ from PIL import Image, ImageFilter, ImageOps def get_crop_region(mask, pad=0):
"""finds a rectangular region that contains all masked ares in an image. Returns (x1, y1, x2, y2) coordinates of the rectangle.
For example, if a user has painted the top-right part of a 512x512 image", the result may be (256, 0, 512, 256)"""
-
+
h, w = mask.shape
crop_left = 0
|