diff options
author | papuSpartan <30642826+papuSpartan@users.noreply.github.com> | 2022-11-07 03:05:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 03:05:28 +0000 |
commit | 00ebc26c4e2962a31e067539d89cd695d999539a (patch) | |
tree | 4c2d46e00ffcc5b606f4841926b3a61fed903f00 /modules/masking.py | |
parent | 86d35526a13a0e2432ab71d1d40b191615d3e343 (diff) | |
parent | 804d9fb83d0c63ca3acd36378707ce47b8f12599 (diff) | |
download | stable-diffusion-webui-gfx803-00ebc26c4e2962a31e067539d89cd695d999539a.tar.gz stable-diffusion-webui-gfx803-00ebc26c4e2962a31e067539d89cd695d999539a.tar.bz2 stable-diffusion-webui-gfx803-00ebc26c4e2962a31e067539d89cd695d999539a.zip |
Merge branch 'AUTOMATIC1111:master' into master
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 fd8d9241..a5c4d2da 100644 --- a/modules/masking.py +++ b/modules/masking.py @@ -49,7 +49,7 @@ def expand_crop_region(crop_region, processing_width, processing_height, image_w ratio_processing = processing_width / processing_height
if ratio_crop_region > ratio_processing:
- desired_height = (x2 - x1) * ratio_processing
+ desired_height = (x2 - x1) / ratio_processing
desired_height_diff = int(desired_height - (y2-y1))
y1 -= desired_height_diff//2
y2 += desired_height_diff - desired_height_diff//2
|