diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-21 16:01:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 16:01:44 +0300 |
commit | 8a6a4ad894c2e28bcb6924490396997bfed7f07f (patch) | |
tree | 1d0b02dbe19ce1bc26753001ca93c1eeaa3f8c13 /modules/processing.py | |
parent | 3a5196de1b870dafaef5c7ca8734f5efaf3f0d17 (diff) | |
parent | e36827af3254f7bac9f8c78d6d56c709959b40b6 (diff) |
Merge pull request #14709 from AUTOMATIC1111/improve-get_crop_region
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
|