diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2024-01-20 22:20:52 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2024-01-21 00:02:18 +0000 |
commit | e36827af3254f7bac9f8c78d6d56c709959b40b6 (patch) | |
tree | ff57f209fc3de3916e83aa6aa3f5fe3ae3f53998 /modules/processing.py | |
parent | f939bce845ae07536b1c920618743af83e0b01ec (diff) | |
download | stable-diffusion-webui-gfx803-e36827af3254f7bac9f8c78d6d56c709959b40b6.tar.gz stable-diffusion-webui-gfx803-e36827af3254f7bac9f8c78d6d56c709959b40b6.tar.bz2 stable-diffusion-webui-gfx803-e36827af3254f7bac9f8c78d6d56c709959b40b6.zip |
improve get_crop_region
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 6b631795..72d8093b 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -1562,7 +1562,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing): if self.inpaint_full_res:
self.mask_for_overlay = image_mask
mask = image_mask.convert('L')
- crop_region = masking.get_crop_region(np.array(mask), self.inpaint_full_res_padding)
+ crop_region = masking.get_crop_region(mask, self.inpaint_full_res_padding)
crop_region = masking.expand_crop_region(crop_region, self.width, self.height, mask.width, mask.height)
x1, y1, x2, y2 = crop_region
|